結果
| 問題 |
No.410 出会い
|
| ユーザー |
commy
|
| 提出日時 | 2018-02-26 16:29:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 437 bytes |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 72,068 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 11:40:51 |
| 合計ジャッジ時間 | 1,286 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <iomanip>
#define REP(i, a, b) for (int i = int(a); i < int(b); i++)
#define dump(s) cerr << __LINE__ << "\t:" << #s << " = " << (s) << endl
using namespace std;
int main () {
int x[2], y[2];
REP (i, 0, 2) cin >> x[i] >> y[i];
cout << fixed << setprecision(20) << (abs(x[1] - x[0]) + abs(y[1] - y[0])) / 2.0 << endl;
return 0;
}
commy