結果
問題 |
No.513 宝探し2
|
ユーザー |
|
提出日時 | 2022-11-06 00:44:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 95 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,480 KB |
平均クエリ数 | 27.50 |
最終ジャッジ日時 | 2024-07-19 17:25:56 |
合計ジャッジ時間 | 2,509 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 RE * 3 |
ソースコード
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}")