結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2018-03-26 23:20:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 678 ms |
コンパイル使用メモリ | 59,480 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-25 12:17:08 |
合計ジャッジ時間 | 2,020 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 WA * 1 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; int main() { int px,py,qx,qy; cin >> px >> py >> qx >> qy; float dx,dy; dx = px - qx; dy = py - qy; dx *= dx < 0 ? -1 : 1; dy *= dy < 0 ? -1 : 1; cout << dx/2 + dy/2 << endl; return 0; }