結果
| 問題 |
No.410 出会い
|
| コンテスト | |
| ユーザー |
Kurichan0806
|
| 提出日時 | 2017-11-01 14:58:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 328 bytes |
| コンパイル時間 | 596 ms |
| コンパイル使用メモリ | 73,796 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-22 14:33:06 |
| 合計ジャッジ時間 | 1,574 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 1 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
using namespace std;
#define diff(x, y) ((x) > (y) ? ((x) - (y)) : ((y) - (x)))
int main(void) {
long double Px, Py, Qx, Qy;
cin >> Px >> Py >> Qx >> Qy;
cout << diff(Px, Qx) / 2 + diff(Py, Qy) / 2 << endl;
}
Kurichan0806