提出 #68542475
ソースコード 拡げる
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, n) for (int i = n-1; i >=0; i--) #define repsg(i, s, g) for (int i = s; i < (int)(g); i++) using ll = long long; using P = pair<int,int>; using Graph = vector<vector<int>>; using mint = modint1000000007; int main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; vector<ll> R(N), C(N); rep(i, N) cin >> R[i] >> C[i]; ll maxR = *max_element(R.begin(), R.end()); ll minR = *min_element(R.begin(), R.end()); ll maxC = *max_element(C.begin(), C.end()); ll minC = *min_element(C.begin(), C.end()); cout << max((maxR-minR+1)/2, (maxC-minC+1)/2) << endl; return 0; }
提出情報
提出日時 | |
---|---|
問題 | C - King's Summit |
ユーザ | tkar821 |
言語 | C++ 23 (gcc 12.2) |
得点 | 300 |
コード長 | 791 Byte |
結果 | AC |
実行時間 | 23 ms |
メモリ | 6364 KiB |
ジャッジ結果
セット名 | Sample | All | ||||
---|---|---|---|---|---|---|
得点 / 配点 | 0 / 0 | 300 / 300 | ||||
結果 |
|
|
セット名 | テストケース |
---|---|
Sample | sample00.txt, sample01.txt, sample02.txt |
All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt, testcase19.txt, testcase20.txt, testcase21.txt, testcase22.txt |
ケース名 | 結果 | 実行時間 | メモリ |
---|---|---|---|
sample00.txt | AC | 1 ms | 3512 KiB |
sample01.txt | AC | 1 ms | 3504 KiB |
sample02.txt | AC | 1 ms | 3452 KiB |
testcase00.txt | AC | 1 ms | 3640 KiB |
testcase01.txt | AC | 1 ms | 3448 KiB |
testcase02.txt | AC | 1 ms | 3512 KiB |
testcase03.txt | AC | 15 ms | 5168 KiB |
testcase04.txt | AC | 23 ms | 6292 KiB |
testcase05.txt | AC | 7 ms | 4164 KiB |
testcase06.txt | AC | 23 ms | 6216 KiB |
testcase07.txt | AC | 20 ms | 5676 KiB |
testcase08.txt | AC | 22 ms | 6236 KiB |
testcase09.txt | AC | 5 ms | 3604 KiB |
testcase10.txt | AC | 22 ms | 6256 KiB |
testcase11.txt | AC | 23 ms | 6360 KiB |
testcase12.txt | AC | 13 ms | 4868 KiB |
testcase13.txt | AC | 8 ms | 4100 KiB |
testcase14.txt | AC | 1 ms | 3528 KiB |
testcase15.txt | AC | 2 ms | 3576 KiB |
testcase16.txt | AC | 10 ms | 4368 KiB |
testcase17.txt | AC | 23 ms | 6264 KiB |
testcase18.txt | AC | 23 ms | 6256 KiB |
testcase19.txt | AC | 23 ms | 6364 KiB |
testcase20.txt | AC | 23 ms | 6288 KiB |
testcase21.txt | AC | 23 ms | 6128 KiB |
testcase22.txt | AC | 23 ms | 6236 KiB |