結果
| 問題 |
No.2962 Sum Bomb Bomber
|
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2024-11-16 16:39:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 468 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 85,352 KB |
| 平均クエリ数 | 299.22 |
| 最終ジャッジ日時 | 2024-11-16 16:40:35 |
| 合計ジャッジ時間 | 17,532 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | AC * 1 RE * 63 |
ソースコード
N=int(input())
l=-10**8
r=10**8
while True:
m1=(2*l+r)//3
m2=(l+2*r)//3
print(1,m1,0,flush=True)
d1=int(input())
print(1,m2,0,flush=True)
d2=int(input())
if d1<=d2:
r=m2
else:
l=m1
if l==r:
break
a=l
l=-10**8
r=10**8
while True:
m1=(2*l+r)//3
m2=(l+2*r)//3
print(1,0,m1,flush=True)
d1=int(input())
print(1,0,m2,flush=True)
d2=int(input())
if d1<=d2:
r=m2
else:
l=m1
if l==r:
break
b=l
print(2,a,b,flush=True)
ゼット