結果
| 問題 |
No.513 宝探し2
|
| コンテスト | |
| ユーザー |
tamato
|
| 提出日時 | 2020-05-08 16:35:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 2,000 ms |
| コード長 | 649 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 82,908 KB |
| 実行使用メモリ | 69,832 KB |
| 平均クエリ数 | 2.67 |
| 最終ジャッジ日時 | 2024-07-17 02:42:24 |
| 合計ジャッジ時間 | 1,852 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
mod = 1000000007
eps = 10**-9
def main():
import sys
input = sys.stdin.readline
print(0, 0)
sys.stdout.flush()
D = int(input())
if D == 0:
exit()
if D <= 100000:
print(0, D)
sys.stdout.flush()
d = int(input())
if d == 0:
exit()
print(d//2, D - d//2)
sys.stdout.flush()
exit()
else:
print(D - 100000, 100000)
sys.stdout.flush()
d = int(input())
if d == 0:
exit()
print(D - 100000 + d // 2, 100000 - d//2)
sys.stdout.flush()
exit()
if __name__ == '__main__':
main()
tamato