結果

問題 No.514 宝探し3
ユーザー smz_8110smz_8110
提出日時 2017-05-10 16:59:23
言語 Ruby
(3.3.0)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 31,528 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 14:00:03
合計ジャッジ時間 2,315 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
31,028 KB
testcase_01 AC 96 ms
31,192 KB
testcase_02 AC 95 ms
31,428 KB
testcase_03 AC 103 ms
31,052 KB
testcase_04 AC 98 ms
31,528 KB
testcase_05 AC 99 ms
31,248 KB
testcase_06 AC 97 ms
31,332 KB
testcase_07 AC 98 ms
31,140 KB
testcase_08 AC 95 ms
30,824 KB
testcase_09 AC 97 ms
31,444 KB
testcase_10 AC 99 ms
30,924 KB
testcase_11 AC 99 ms
30,952 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

F=->x,y{puts "#{x} #{y}";$>.flush;gets.to_i}
a,b=F[0,0],F[0,M=1000000000]
puts "#{x=(a-(M-b))/2} #{a-x}"
0