# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
466126 | 2021-08-18T03:26:17 Z | Nanogines | Best Place (NOI17_bestplace) | C++14 | 1000 ms | 420 KB |
#include <bits/stdc++.h> using namespace std; #define int long long int #define fastio ios::sync_with_stdio(0);cin.tie(0); cout.tie(0); #define forn(i, a, b) for (int i=a; i<b; i++) #define fore(i, a, b) for (int i=a; i<=b; i++) typedef vector<int> vi; void fast_io() { fastio; #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif } signed main() { fast_io(); int n; cin >> n; int c, d; int s1 = 0, s2 = 0; forn(i, 0, n) { cin >> c >> d; s1 += c; s2 += d; } cout << ceil(s1 / n) << " " << ceil(s2 / n) << endl; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1090 ms | 332 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1092 ms | 332 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1086 ms | 420 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1020 ms | 332 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1090 ms | 332 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1088 ms | 332 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |