結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2016-08-12 22:23:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 724 ms |
コンパイル使用メモリ | 76,312 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 12:21:24 |
合計ジャッジ時間 | 1,572 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 WA * 1 |
ソースコード
#include <iostream> #include <fstream> #include <vector> #include <cstring> #include <string> #include <algorithm> #include <iomanip> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int x[2], y[2]; for(int i = 0; i < 2; i++) { cin >> x[i] >> y[i]; } x[0] -= x[1]; y[0] -= y[1]; cout << (abs(x[0]) + abs(y[0])) / 2.0 << endl; }