Submission #466127

# Submission time Handle Problem Language Result Execution time Memory
466127 2021-08-18T03:28:07 Z Nanogines Best Place (NOI17_bestplace) C++14
0 / 100
28 ms 2204 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;
}


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;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Expected integer, but "5e+08" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 1 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 19 ms 1320 KB Expected integer, but "9.36482e+07" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 316 KB Expected integer, but "5.04502e+08" found
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 28 ms 2204 KB Expected integer, but "4.99177e+08" found
2 Halted 0 ms 0 KB -