結果

問題 No.514 宝探し3
ユーザー ikdikd
提出日時 2017-05-05 23:35:29
言語 Ruby
(3.3.0)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 31,372 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:50:03
合計ジャッジ時間 3,387 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
31,244 KB
testcase_01 AC 97 ms
31,372 KB
testcase_02 AC 97 ms
31,140 KB
testcase_03 AC 94 ms
30,708 KB
testcase_04 AC 97 ms
30,928 KB
testcase_05 AC 97 ms
30,908 KB
testcase_06 AC 100 ms
31,044 KB
testcase_07 AC 98 ms
30,672 KB
testcase_08 AC 102 ms
31,184 KB
testcase_09 AC 101 ms
31,320 KB
testcase_10 AC 99 ms
30,644 KB
testcase_11 AC 98 ms
31,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

puts "0 0"
STDOUT.flush
d=gets.to_i
puts "0 #{d}"
STDOUT.flush
e=gets.to_i
e-=d
puts "#{(d+e)/2} #{(d-e)/2}"
STDOUT.flush
0