Submission #4955

#TimeUsernameProblemLanguageResultExecution timeMemory
4955ansol4328덩치 (KOI13_body)C++98
18 / 18
0 ms1088 KiB
#include<stdio.h> int n, m[52][4]; int main() { int i, j, cnt; scanf("%d",&n); for(i=1 ; i<=n ; i++) { scanf("%d %d",&m[i][1],&m[i][2]); } for(i=1 ; i<=n ; i++) { cnt=1; for(j=1 ; j<=n ; j++) { if(m[i][1]<m[j][1] && m[i][2]<m[j][2]) { cnt++; } } printf("%d ",cnt); } 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...