結果

問題 No.514 宝探し3
ユーザー r_dream0r_dream0
提出日時 2017-05-05 22:39:26
言語 Ruby
(3.3.0)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 31,548 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:21:12
合計ジャッジ時間 2,252 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
31,132 KB
testcase_01 AC 94 ms
31,320 KB
testcase_02 AC 98 ms
30,876 KB
testcase_03 AC 101 ms
31,372 KB
testcase_04 AC 99 ms
30,724 KB
testcase_05 AC 96 ms
31,548 KB
testcase_06 AC 98 ms
31,232 KB
testcase_07 AC 96 ms
31,320 KB
testcase_08 AC 98 ms
30,992 KB
testcase_09 AC 98 ms
30,848 KB
testcase_10 AC 99 ms
31,456 KB
testcase_11 AC 99 ms
31,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

puts "0 0"
STDOUT.flush
d1 = gets.to_i
puts "#{T = 1000000000} 0"
STDOUT.flush
d2 = gets.to_i
y = (d1 + d2 - T) / 2
x = d1 - y
puts "#{x} #{y}"
STDOUT.flush
0