Submission #9045

#TimeUsernameProblemLanguageResultExecution timeMemory
9045coreaPenalty calculation (kriii2_PE)C++14
4 / 4
0 ms1672 KiB
#include <iostream> #include <vector> using namespace std; int main() { int N; cin >> N; int S = 0; int C = 0; int res = 0; while( N -- ) { int s, t; cin >> t >> s; C ++; if( S < s ) { S = s; res = t + (C - 1) * 20; } } cout << res << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...