結果
| 問題 |
No.410 出会い
|
| ユーザー |
めうめう🎒
|
| 提出日時 | 2016-10-12 15:53:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 499 bytes |
| コンパイル時間 | 606 ms |
| コンパイル使用メモリ | 72,728 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 11:17:43 |
| 合計ジャッジ時間 | 1,347 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define INF (1 << 30)
#define INFLL (1LL << 60)
int main() {
int x1,x2,y1,y2;
cin >> x1 >> y1;
cin >> x2 >> y2;
int ans = abs(x1 - x2) + abs(y1 - y2);
if(ans % 2 == 0){
cout << ans / 2 << endl;
}else{
cout << ans / 2 << ".5" << endl;
}
return 0;
}
めうめう🎒