結果
問題 |
No.410 出会い
|
ユーザー |
|
提出日時 | 2016-11-19 16:19:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 1,451 ms |
コンパイル使用メモリ | 166,624 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-26 21:55:05 |
合計ジャッジ時間 | 2,367 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 14 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; signed main(){ double x1, y1, x2, y2; cin >> x1 >> y1 >> x2 >> y2; double xd = fabs( x1 - ( x1 + x2 ) / 2 ); double yd = fabs( y1 - ( y1 + y2 ) / 2 ); double ans = xd + yd; cout << ( int ) ( ans + 1e-8 ) << endl; return 0; }