結果
| 問題 |
No.410 出会い
|
| コンテスト | |
| ユーザー |
cb_4150
|
| 提出日時 | 2017-08-16 22:35:55 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 54,360 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 13:03:37 |
| 合計ジャッジ時間 | 1,112 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 1 |
ソースコード
#include <iostream>
int main() {
int ax, ay, bx, by;
std::cin >> ax >> ay >> bx >> by;
ax = bx - ax;
ay = by - ay;
if (ax < 0) ax *= -1;
if (ay < 0) ay *= -1;
std::cout << (ax + ay) / 2.0 << std::endl;
return 0;
}
cb_4150