結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2020-05-03 09:34:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 275 bytes |
コンパイル時間 | 1,420 ms |
コンパイル使用メモリ | 166,860 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 07:23:08 |
合計ジャッジ時間 | 2,365 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { pair<int, int> a, b; cin >> a.first >> a.second >> b.first >> b.second; int d = max(a.first, b.first) - min(a.first, b.first); d += max(a.second, b.second) - min(a.second, b.second); cout << d / 2.0 << endl; }