結果
問題 | No.410 出会い |
ユーザー |
![]() |
提出日時 | 2016-08-12 22:22:18 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 1,476 ms |
コンパイル使用メモリ | 165,380 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 10:55:16 |
合計ジャッジ時間 | 2,249 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define rep(i,a,b) for(int i=a;i<b;i++)//-----------------------------------------------------------------int main() {int a, b, c, d;cin >> a >> b >> c >> d;int ans = abs(a - c) + abs(b - d);cout << ans / 2;if (ans % 2 == 1) cout << ".5";cout << endl;}