結果
| 問題 |
No.410 出会い
|
| ユーザー |
|
| 提出日時 | 2021-09-15 02:16:45 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 2,385 ms |
| コンパイル使用メモリ | 191,664 KB |
| 最終ジャッジ日時 | 2025-01-24 14:03:55 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
long long int x1,x2,y1,y2;
cin >> x1 >> y1;
cin >> x2 >> y2;
long long int dx = abs(x1-x2);
long long int dy = abs(y1-y2);
long double res = (dx/2.0) + (dy/2.0);
cout << fixed;
cout.precision(6);
cout << res << '\n';
return 0;
}