結果

問題 No.2962 Sum Bomb Bomber
ユーザー ニックネーム
提出日時 2024-11-16 16:14:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 883 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,608 KB
平均クエリ数 183.55
最終ジャッジ日時 2024-11-16 16:14:24
合計ジャッジ時間 12,175 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 62 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
lx = -10**8; rx = 10**8+1
while rx-lx>2:
    ml = lx+(rx-lx)//3; mr = lx+(rx-lx)//3*2
    print(1,ml,0); p = int(input())
    print(1,mr,0); q = int(input())
    if p<q: rx = mr
    else: lx = ml
ly = -10**8; ry = 10**8+1
while ry-ly>2:
    ml = ly+(ry-ly)//3; mr = ly+(ry-ly)//3*2
    print(1,0,ml); p = int(input())
    print(1,0,mr); q = int(input())
    if p<q: ry = mr
    else: ly = ml
print(2,lx+1,ly+1)
0