結果

問題 No.410 出会い
ユーザー 0w10w1
提出日時 2016-11-19 16:19:09
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 1,370 ms
コンパイル使用メモリ 165,512 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-05 04:14:48
合計ジャッジ時間 2,227 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 1 ms
5,376 KB
testcase_09 AC 1 ms
5,376 KB
testcase_10 AC 2 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 WA -
testcase_13 AC 2 ms
5,376 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 1 ms
5,376 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 2 ms
5,376 KB
testcase_20 AC 1 ms
5,376 KB
testcase_21 AC 2 ms
5,376 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

signed main(){
  double x1, y1, x2, y2; cin >> x1 >> y1 >> x2 >> y2;
  double xd = fabs( x1 - ( x1 + x2 ) / 2 );
  double yd = fabs( y1 - ( y1 + y2 ) / 2 );
  double ans = xd + yd;
  cout << ( int ) ( ans + 1e-8 ) << endl;
  return 0;
}
0