Submission #1032684

#TimeUsernameProblemLanguageResultExecution timeMemory
1032684vjudge1Ljeto (COCI21_ljeto)C++17
50 / 50
1 ms348 KiB
#include<iostream> using namespace std; int main() { int n; cin >> n; int last[8] = {}; for(int i = 0; i < 8; i++) last[i] = -20; int s1 = 0, s2 = 0; while(n--) { int t , a, b; cin >> t >> a >> b; a--, b--; if(a <= 3) { s1 += 100; if(t - last[a] <= 10) s1 += 50; last[a] = t; } else { s2 += 100; if(t - last[a] <= 10) s2 += 50; last[a] = t; } } cout << s1 << ' ' << s2 << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...