結果
| 問題 |
No.410 出会い
|
| ユーザー |
femto
|
| 提出日時 | 2016-08-13 00:17:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 395 bytes |
| コンパイル時間 | 714 ms |
| コンパイル使用メモリ | 77,228 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 11:00:46 |
| 合計ジャッジ時間 | 1,532 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
#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 << fixed << setprecision(10) << (abs(x[0]) + abs(y[0])) / 2.0 << endl;
}
femto