Submission #18602

#TimeUsernameProblemLanguageResultExecution timeMemory
18602eaststarPenalty calculation (kriii2_PE)C++14
4 / 4
0 ms1084 KiB
#include <stdio.h> int main(){ int i,n,s,t,mx,ans; scanf("%d",&n); mx=ans=0; for(i=1;i<=n;++i){ scanf("%d%d",&t,&s); if(mx<s){ mx=s; ans=t+(i-1)*20; } } printf("%d",ans); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...