結果
| 問題 |
No.410 出会い
|
| コンテスト | |
| ユーザー |
yukiteru
|
| 提出日時 | 2017-09-18 11:38:34 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 462 bytes |
| コンパイル時間 | 649 ms |
| コンパイル使用メモリ | 72,508 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 02:27:05 |
| 合計ジャッジ時間 | 1,411 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 1 |
ソースコード
#include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007
using namespace std;
int main(void) {
int px, py, qx, qy;
double math;
cin >> px >> py >> qx >> qy;
math = (double)(abs(px - qx) + abs(py - qy)) / (double)2;
cout << math << endl;
return 0;
}
yukiteru