結果

問題 No.410 出会い
ユーザー wotsushiwotsushi
提出日時 2016-12-06 22:55:10
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 111 bytes
コンパイル時間 498 ms
コンパイル使用メモリ 11,384 KB
実行使用メモリ 15,352 KB
最終ジャッジ日時 2023-08-18 19:39:53
合計ジャッジ時間 3,916 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,264 KB
testcase_01 AC 73 ms
15,152 KB
testcase_02 AC 75 ms
15,148 KB
testcase_03 AC 79 ms
15,152 KB
testcase_04 WA -
testcase_05 AC 79 ms
15,264 KB
testcase_06 AC 73 ms
15,176 KB
testcase_07 AC 75 ms
15,352 KB
testcase_08 AC 73 ms
15,268 KB
testcase_09 AC 76 ms
15,040 KB
testcase_10 AC 72 ms
15,088 KB
testcase_11 AC 77 ms
15,036 KB
testcase_12 AC 75 ms
15,088 KB
testcase_13 WA -
testcase_14 AC 78 ms
15,268 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 76 ms
15,224 KB
testcase_19 AC 73 ms
15,148 KB
testcase_20 WA -
testcase_21 AC 75 ms
15,144 KB
testcase_22 AC 73 ms
15,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

P = gets.split.map(&:to_i)
Q = gets.split.map(&:to_i)
ans = ((P[0] - Q[0]).abs + (P[1] - Q[1])) / 2.0
puts ans
0