結果
問題 |
No.514 宝探し3
|
ユーザー |
![]() |
提出日時 | 2020-05-08 16:36:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 668 bytes |
コンパイル時間 | 308 ms |
コンパイル使用メモリ | 82,472 KB |
実行使用メモリ | 69,136 KB |
平均クエリ数 | 2.67 |
最終ジャッジ日時 | 2024-07-17 03:38:28 |
合計ジャッジ時間 | 1,958 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 <= 1000000000: 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 - 1000000000, 1000000000) sys.stdout.flush() d = int(input()) if d == 0: exit() print(D - 1000000000 + d // 2, 1000000000- d//2) sys.stdout.flush() exit() if __name__ == '__main__': main()