# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
931936 | 2024-02-22T15:44:36 Z | hugsfromadicto | Go (COCI16_go) | C++14 | 1 ms | 468 KB |
#pragma GCC optimize("O3") #include <bits/stdc++.h> #define int long long using namespace std; const int mxN = 1e6; int a[mxN], b[mxN]; int s[mxN]; void _() { int n; cin >> n; string ns; int mx = 0; int tot = 0; for(int i = 0; i < n; ++i) { string s; cin >> s; int nd,hv; cin >> s >> nd >> hv; int ans = 0; while(hv >= nd) { ans++; hv = hv - nd + 2; } if(ans > mx) { mx = ans; ns = s; } tot+=ans; } cout << tot << endl << ns; } main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int tc = 1; while(tc--) { _(); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Output isn't correct |
2 | Incorrect | 0 ms | 348 KB | Output isn't correct |
3 | Incorrect | 0 ms | 468 KB | Output isn't correct |
4 | Incorrect | 0 ms | 344 KB | Output isn't correct |
5 | Incorrect | 1 ms | 348 KB | Output isn't correct |
6 | Incorrect | 0 ms | 344 KB | Output isn't correct |
7 | Incorrect | 1 ms | 348 KB | Output isn't correct |
8 | Incorrect | 0 ms | 348 KB | Output isn't correct |
9 | Incorrect | 0 ms | 348 KB | Output isn't correct |
10 | Incorrect | 0 ms | 348 KB | Output isn't correct |
11 | Incorrect | 0 ms | 348 KB | Output isn't correct |
12 | Incorrect | 0 ms | 468 KB | Output isn't correct |
13 | Incorrect | 0 ms | 348 KB | Output isn't correct |
14 | Incorrect | 0 ms | 344 KB | Output isn't correct |
15 | Incorrect | 0 ms | 348 KB | Output isn't correct |
16 | Incorrect | 0 ms | 344 KB | Output isn't correct |
17 | Incorrect | 0 ms | 348 KB | Output isn't correct |
18 | Incorrect | 0 ms | 348 KB | Output isn't correct |
19 | Incorrect | 1 ms | 344 KB | Output isn't correct |
20 | Incorrect | 1 ms | 356 KB | Output isn't correct |
21 | Incorrect | 0 ms | 348 KB | Output isn't correct |
22 | Incorrect | 0 ms | 344 KB | Output isn't correct |
23 | Incorrect | 0 ms | 344 KB | Output isn't correct |
24 | Incorrect | 0 ms | 348 KB | Output isn't correct |
25 | Incorrect | 0 ms | 348 KB | Output isn't correct |