Submission #5818

#TimeUsernameProblemLanguageResultExecution timeMemory
5818jspark19990205덩치 (KOI13_body)C11
18 / 18
0 ms1088 KiB
#include<stdio.h> int cm[200]; int kg[200]; int main() { int N,i,j; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d %d",&kg[i],&cm[i]); } for(i=0;i<N;i++){ int prize = 1; for(j=0;j<N;j++){ if(i==j){ continue; } else if(kg[j]>kg[i] && cm[j]>cm[i]){ prize++; } } printf("%d ",prize); } 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...