QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#315047 | #4935. Exchange Bottleneck | yuyutw# | WA | 0ms | 3624kb | C++14 | 553b | 2024-01-26 20:37:03 | 2024-01-26 20:37:04 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define io ios::sync_with_stdio(0), cin.tie(0);
#define endl '\n'
#define MXN (ll)1e6+5
int main(){
io
int n;
cin>>n;
int maxx=-1000000;
int maxy=-1000000;
int minx=1000000;
int miny=1000000;
for(int i=0;i<n;i++){
int x,y;
cin>>x>>y;
maxx=max(maxx,x);
maxy=max(maxy,y);
minx=min(minx,x);
miny=min(miny,y);
}
cout<<(maxx-minx+1)/2<<" "<<(maxy-miny+1)/2<<endl;
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3624kb
input:
5 1 0 1 0
output:
0 0
result:
wrong answer 1st lines differ - expected: '2', found: '0 0'