結果
問題 | No.246 質問と回答 |
ユーザー | 小指が強い人 |
提出日時 | 2015-11-15 17:26:11 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 11,480 KB |
実行使用メモリ | 31,676 KB |
平均クエリ数 | 73.40 |
最終ジャッジ日時 | 2023-09-23 08:06:43 |
合計ジャッジ時間 | 6,733 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 139 ms
31,208 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 121 ms
31,392 KB |
testcase_04 | AC | 120 ms
31,500 KB |
testcase_05 | WA | - |
testcase_06 | AC | 120 ms
31,380 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 125 ms
31,044 KB |
testcase_11 | WA | - |
testcase_12 | AC | 120 ms
30,972 KB |
testcase_13 | AC | 122 ms
30,980 KB |
testcase_14 | AC | 122 ms
30,768 KB |
testcase_15 | WA | - |
testcase_16 | AC | 122 ms
31,336 KB |
testcase_17 | WA | - |
testcase_18 | AC | 121 ms
31,588 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 125 ms
31,404 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | AC | 124 ms
30,644 KB |
testcase_29 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
rmin = 1 rmax = 10 ** 9 while rmin < rmax do mid = (rmin + rmax) / 2 print "? ", mid, "\n" STDOUT.flush if gets.to_i == 1 rmin = mid else rmax = mid - 1 end end print "! ", rmin, "\n" STDOUT.flush