# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
18602 | eaststar | Penalty calculation (kriii2_PE) | C++14 | 0 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |