2011-08-03 17:56:42Morris

a148. You Cannot Pass?!

準備要短碼中毒了
/**********************************************************************************/

/*  Problem: a148 "You Cannot Pass?!" from                                        */
/*  Language: C                                                                   */
/*  Result: AC (0ms, 192KB) on ZeroJudge                                          */
/*  Author: morris1028 at 2011-08-03 17:30:17                                     */
/**********************************************************************************/


#include<stdio.h>
main() {
    int a, n, x;
    while(scanf("%d", &n) == 1) {
        int sum = 0;
        for(a = 0; a < n; a++)
            scanf("%d", &x), sum += x;
        puts(n*59 >= sum ? "yes" : "no");
    }
    return 0;
}

上一篇:a147. Print it all

下一篇:a149. 乘乘樂