Submission #7732

#TimeUsernameProblemLanguageResultExecution timeMemory
7732gs14004덩치 (KOI13_body)C++98
18 / 18
0 ms1204 KiB
#include <stdio.h> int main(){ int n,i,j; scanf("%d",&n); int a[n],b[n],c[n]; for (i=0; i<n; i++) { scanf("%d %d",&a[i],&b[i]); c[i]=1; } for (i=0; i<n; i++) { for (j=0; j<n; j++) c[i]+=(a[i]<a[j])&&(b[i]<b[j]); } for (i=0; i<n; i++) { printf("%d ",c[i]); } }
#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...