Submission #4550

#TimeUsernameProblemLanguageResultExecution timeMemory
4550ansol4328올림픽 (KOI13_olympic)C++98
100 / 100
0 ms1108 KiB
#include<stdio.h> int n, m; int a[1002][5]; int main() { int i, k, cnt=1; scanf("%d %d",&n,&m); for(i=1 ; i<=n ; i++) { scanf("%d",&k); scanf("%d %d %d",&a[k][1],&a[k][2],&a[k][3]); } for(i=1 ; i<=n ; i++) { if(a[m][1]<a[i][1]) cnt++; if(a[m][1]==a[i][1] && a[m][2]<a[i][2]) cnt++; if(a[m][1]==a[i][1] && a[m][2]==a[i][2] && a[m][3]<a[i][3]) 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...