結果
| 問題 | No.410 出会い |
| コンテスト | |
| ユーザー |
startcpp
|
| 提出日時 | 2016-08-12 22:58:46 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 773 ms |
| コンパイル使用メモリ | 71,272 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2026-03-17 02:10:27 |
| 合計ジャッジ時間 | 1,314 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
#include <iostream>
#include <cstdio>
using namespace std;
int abs(int x) {
if (x < 0) return -x;
return x;
}
int main() {
int px, py;
int qx, qy;
cin >> px >> py >> qx >> qy;
double t = (abs(px - qx) + abs(py - qy)) * 0.5;
printf("%.14f\n", t);
return 0;
}
startcpp