結果
問題 | No.410 出会い |
ユーザー |
![]() |
提出日時 | 2020-02-05 04:46:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 561 ms |
コンパイル使用メモリ | 73,344 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 18:45:36 |
合計ジャッジ時間 | 1,543 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main(void) { double px, py, qx, qy; cin >> px >> py >> qx >> qy; double diff = abs(px - qx) + abs(py - qy); diff /= 2; cout << fixed << setprecision(10) << diff << endl; return 0; }