|
[求助] 纠结了好久不知道问题出在哪? 求最简分数形式。
谢谢,已经ac了。 |
|
[求助]求教,代码代码中 p=(double)(sum-min-max)/(n-2); (double)是什么意思? 为什么要加上它?
#include<stdio.h> int main(void) { int i,n,a,max,min,sum; double p; while(scanf("%d",&n)!=EOF) { max=-1; min=110; sum=0; p=0; for(i=1;i<=n;i++) { scanf("%d",&a); max=max>a?max:a; min=min<a?min:a; sum=sum+a; } p=(double)(sum-min-max)/(n-2); printf("%.2f\n",p); } return 0; } |
|
|
|
[求助] 新手学习 c语言,学到后面需要用到高数吗?
第一次发帖,谢谢大家回复给了我动力! |
|
[求助]新人报道
新人同求! |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值