結果
問題 | No.513 宝探し2 |
ユーザー | lloyz |
提出日時 | 2022-11-06 00:44:20 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 10,956 KB |
実行使用メモリ | 24,396 KB |
平均クエリ数 | 27.50 |
最終ジャッジ日時 | 2023-09-26 23:42:31 |
合計ジャッジ時間 | 2,460 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 44 ms
23,820 KB |
testcase_01 | AC | 41 ms
23,400 KB |
testcase_02 | AC | 41 ms
23,352 KB |
testcase_03 | AC | 40 ms
23,364 KB |
testcase_04 | AC | 40 ms
23,352 KB |
testcase_05 | RE | - |
testcase_06 | AC | 40 ms
23,560 KB |
testcase_07 | AC | 40 ms
23,496 KB |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | AC | 41 ms
23,472 KB |
testcase_11 | AC | 40 ms
23,468 KB |
ソースコード
xl, xr = 0, 100000 while xr - xl > 1: mid = (xr + xl) // 2 print(f"{xl} {0}") dl = int(input()) print(f"{xr} {0}") dr = int(input()) if dl < dr: xr = mid else: xl = mid print(f"{xl} {0}") dl = int(input()) print(f"{xr} {0}") dr = int(input()) if dl < dr: x = xl y = dl else: x = xr y = dr print(f"{x} {y}")