Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

别做这个了。。

Posted by Ly86 at 2011-02-07 15:13:17 on Problem 3507
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator