Submission #1837

#TimeUsernameProblemLanguageResultExecution timeMemory
1837alephnull덩치 (KOI13_body)C++98
18 / 18
0 ms884 KiB
#include <cstdio> int main(){ int n;scanf("%d",&n); int x[n],y[n]; for(int i=0;i<n;i++)scanf("%d %d",x+i,y+i); int ans[n]; for(int i=0;i<n;i++){ ans[i]=1; for(int j=0;j<n;j++){ if(x[j]>x[i]&&y[j]>y[i])ans[i]++; } } for(int i=0;i<n;i++)printf("%d ",ans[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...