# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
9102 | myungwoo | Penalty calculation (kriii2_PE) | C++14 | 0 ms | 1088 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 N;
int main()
{
int i, s = 0, f=1, t = 0;
scanf("%d", &N);
for (i=1;i<=N;i++){
int x, v;
scanf("%d%d", &x, &v);
if (s < v) s = v, f = i, t = x;
}
printf("%d\n", t+(f-1)*20);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |