Submission #9102

#TimeUsernameProblemLanguageResultExecution timeMemory
9102myungwooPenalty calculation (kriii2_PE)C++14
4 / 4
0 ms1088 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...