QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#203756 | #4943. Police Stations | Anwar# | WA | 0ms | 3740kb | C++20 | 503b | 2023-10-06 20:08:04 | 2023-10-06 20:08:04 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 2e5 + 3, MOD = 998244353;//1e9 + 7;
int32_t main() {
cin.tie(0);cin.sync_with_stdio(0);
cout.tie(0);cout.sync_with_stdio(0);
int n;
cin >> n;
int x[n] ;
int y[n] ;
for (int i = 0; i < n; ++i) {
cin >> x[i] >> y[i] ;
}
sort(x,x+n) ;
sort(y,y+n) ;
cout << x[n-1] - (x[0] + x[n-1])/2 << " " << y[n-1] - (y[0] + y[n-1])/2 ;
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3740kb
input:
5 20 90 -10 40 90 20 50 -30 50 70
output:
50 60
result:
ok single line: '50 60'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
2 120 740 122 749
output:
1 5
result:
ok single line: '1 5'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
5 -30 -7 2 80 23 15 31 30 92 -20
output:
61 50
result:
ok single line: '61 50'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
2 -1 1 1 -1
output:
1 1
result:
ok single line: '1 1'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
1 0 0
output:
0 0
result:
ok single line: '0 0'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
1 97874 185956
output:
0 0
result:
ok single line: '0 0'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
10 430700 688911 205798 716277 90011 694885 -152500 247408 292079 -231064 -124629 -404797 783947 -886549 927759 -454565 -232945 -44455 583806 624703
output:
580352 801413
result:
ok single line: '580352 801413'
Test #8:
score: -100
Wrong Answer
time: 0ms
memory: 3612kb
input:
100 58028 -39830 136345 -214254 851610 672534 -857896 -325056 -825703 296635 -959555 -263352 665614 914741 556664 -719236 740416 740566 957677 -52571 598677 602182 -76834 41189 561410 358064 -763398 441589 280130 164301 -713229 74988 889763 517573 43931 -788138 -170490 -52586 -470770 -627252 548816 ...
output:
983899 986165
result:
wrong answer 1st lines differ - expected: '983900 986165', found: '983899 986165'