Submission #8821

#TimeUsernameProblemLanguageResultExecution timeMemory
8821gs13068Penalty calculation (kriii2_PE)C++98
4 / 4
0 ms1088 KiB
#include<cstdio> int main() { int max=0,res=0; int i,n,a,b; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d%d",&a,&b); if(b>max) { max=b; res=a+i*20; } } printf("%d",res); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...