Submission #5936

#TimeUsernameProblemLanguageResultExecution timeMemory
5936jspark199902050 = not cute / 1 = cute (kriii1_0)C++98
1 / 1
0 ms1088 KiB
#include<stdio.h> #include<stdlib.h> int d[1][101]; int main() { int i,j,cnt; int cnt1 = 0,cnt0 = 0; scanf("%d",&i); for(cnt=0;cnt<i;cnt++) { scanf("%d",&d[1][cnt]); } for(j=0;j<cnt;j++) { if(d[1][j]==1) { cnt1++; } else { cnt0++; } } if(cnt1>cnt0) { printf("Junhee is cute!\n"); } else { printf("Junhee is not cute!\n"); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...