# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1081481 | 2024-08-30T05:41:04 Z | Wasif_Shahzad | Ljeto (COCI21_ljeto) | C++17 | 1 ms | 344 KB |
#include <bits/stdc++.h> using namespace std; #define int int64_t int32_t main(){ #ifndef ONLINE_JUDGE freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); #endif int n; cin >> n; vector<int> last(9, -1ll); int sc1 = 0, sc2 = 0; for(int i = 0; i < n; i++){ int t, a, b; cin >> t >> a >> b; if(t - last[a] <= 10 && last[a] != -1){ (a <= 4 ? sc1 += 150 : sc2 += 150); } else{ (a <= 4 ? sc1 += 100 : sc2 += 100); } last[a] = t; } cout << sc1 << " " << sc2 << "\n"; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 0 ms | 344 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 1 ms | 344 KB | Execution killed with signal 11 |
2 | Halted | 0 ms | 0 KB | - |