Submission #5307

#TimeUsernameProblemLanguageResultExecution timeMemory
5307baneling100덩치 (KOI13_body)C++98
0 / 18
0 ms1088 KiB
#include <stdio.h> int n, x[51], y[51], big[51]; void input(void) { int i; scanf("%d",&n); for(i=1 ; i<=n ; i++) scanf("%d %d",&x[i],&y[i]); } void process(void) { int i, j; for(i=1 ; i<=n ; i++) for(j=1 ; j<=n ; j++) if(x[i]<=x[j] && y[i]<=y[j]) big[i]++; } void output(void) { int i; for(i=1 ; i<=n ; i++) printf("%d ",big[i]); } int main(void) { input(); process(); output(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...