結果
| 問題 | No.410 出会い |
| コンテスト | |
| ユーザー |
yui
|
| 提出日時 | 2019-01-30 22:30:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 1,837 ms |
| コンパイル使用メモリ | 167,308 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-06 17:53:54 |
| 合計ジャッジ時間 | 2,925 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | AC * 1 WA * 18 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
signed main() {
int px, py, qx, qy;
cin >> px >> py >> qx >> qy;
int sec = (abs(px - qx) + abs(qx - qy)) / 2;
if ((abs(px - qx) + abs(qx - qy)) % 2 != 0) {
sec++;
}
cout << sec << endl;
}
yui