結果

問題 No.513 宝探し2
ユーザー ikdikd
提出日時 2017-05-05 23:35:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 11,312 KB
実行使用メモリ 31,580 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:08:22
合計ジャッジ時間 2,620 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
31,496 KB
testcase_01 AC 103 ms
30,768 KB
testcase_02 AC 101 ms
31,580 KB
testcase_03 AC 102 ms
31,124 KB
testcase_04 AC 103 ms
31,280 KB
testcase_05 AC 103 ms
30,764 KB
testcase_06 AC 104 ms
31,156 KB
testcase_07 AC 104 ms
31,144 KB
testcase_08 AC 105 ms
30,944 KB
testcase_09 AC 105 ms
30,848 KB
testcase_10 AC 105 ms
31,548 KB
testcase_11 AC 105 ms
30,724 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