| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
别做这个了。。#include <stdio.h>
int a,b;
int main()
{
while (1)
{
b=0;
bool sign=0;
int ma=0,mn=0;
FOR(i,0,6)
{
scanf("%d",&a);b+=a;
sign=sign||a;
if (i == 0 || ma <a) ma=a;
if (i == 0 || mn >a) mn=a;
}
if (!sign) break;
printf("%g\n",(b-ma-mn)*1.0/4);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator