結果
問題 | No.514 宝探し3 |
ユーザー | 👑 tamato |
提出日時 | 2020-05-08 16:36:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 87 ms / 2,000 ms |
コード長 | 668 bytes |
コンパイル時間 | 1,512 ms |
コンパイル使用メモリ | 86,988 KB |
実行使用メモリ | 88,000 KB |
平均クエリ数 | 2.67 |
最終ジャッジ日時 | 2023-09-24 03:29:25 |
合計ジャッジ時間 | 3,618 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
87,816 KB |
testcase_01 | AC | 84 ms
87,552 KB |
testcase_02 | AC | 86 ms
87,452 KB |
testcase_03 | AC | 82 ms
86,920 KB |
testcase_04 | AC | 81 ms
87,476 KB |
testcase_05 | AC | 87 ms
87,556 KB |
testcase_06 | AC | 84 ms
87,188 KB |
testcase_07 | AC | 83 ms
88,000 KB |
testcase_08 | AC | 85 ms
87,672 KB |
testcase_09 | AC | 86 ms
87,336 KB |
testcase_10 | AC | 84 ms
87,560 KB |
testcase_11 | AC | 84 ms
87,652 KB |
ソースコード
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()