# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
480928 | 2021-10-18T20:17:45 Z | saarthak | Best Place (NOI17_bestplace) | C++14 | 76 ms | 356 KB |
#include <bits/stdc++.h> using namespace std; #define io ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define PB push_back #define RS resize #define MP make_pair #define F first #define S second #define B begin() #define E end() #define REP(i, a, b) for(int i = a; i <= b; i++) #define ITR(i, n) for(int i = 0; i < n; i++) #define M 1000000007 typedef int_fast32_t fint; typedef int_fast64_t fint64; typedef vector<fint> vi; typedef vector<vector<fint>> vvi; typedef pair<fint, fint> pi; typedef vector<pair<fint, fint>> vpi; typedef map<fint, fint> imap; typedef long long ll; void solve() { fint n; cin >> n; fint x = 0, y = 0, c; ITR(_, n) { cin >> c; x += c; cin >> c; y += c; } cout << x/n << " " << y/n << "\n"; } int main() { io #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif fint t = 1; //cin >> t; //auto start = chrono::high_resolution_clock::now(); while(t--) solve(); //auto stop = chrono::high_resolution_clock::now(); //cout << "\nTime: " << (chrono::duration_cast<chrono::microseconds>(stop-start).count() / 1e+6) << "s"; return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 73 ms | 352 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 73 ms | 356 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 72 ms | 352 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 76 ms | 356 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 72 ms | 352 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 74 ms | 356 KB | Unexpected end of file - int64 expected |
2 | Halted | 0 ms | 0 KB | - |