페이지

10886번; 0 = not cute / 1 = cute

https://www.acmicpc.net/problem/10886


$O(n)$


#include<cstdio>
int n, x, r;
int main() {
    scanf("%d", &n);
    for (int i = 0; i < n; i++) scanf("%d", &x), r += x;
    puts(2 * r>n ? "Junhee is cute!" : "Junhee is not cute!");
    return 0;
}

댓글 없음 :

댓글 쓰기