結果
問題 |
No.2962 Sum Bomb Bomber
|
ユーザー |
![]() |
提出日時 | 2024-11-16 15:49:56 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 598 bytes |
コンパイル時間 | 444 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 85,072 KB |
平均クエリ数 | 199.95 |
最終ジャッジ日時 | 2024-11-16 15:50:13 |
合計ジャッジ時間 | 16,189 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | AC * 1 WA * 32 RE * 31 |
ソースコード
N = int(input()) lx, rx = -10**8, 10**8 while rx != lx: l, r = (lx*2+rx)//3, (lx+rx*2)//3 print(1, l, 0) resl = int(input()) print(1, r, 0) resr = int(input()) if resl < resr: rx = r elif resl == resr: rx = r lx = l else: lx = l ansx = lx lx, rx = -10**8, 10**8 while rx != lx: l, r = (lx*2+rx)//3, (lx+rx*2)//3 print(1, l, 0) resl = int(input()) print(1, r, 0) resr = int(input()) if resl < resr: rx = r elif resl == resr: rx = r lx = l else: lx = l print(2, ansx, lx)