結果
問題 | No.514 宝探し3 |
ユーザー | No |
提出日時 | 2017-05-10 00:18:32 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 524 bytes |
コンパイル時間 | 564 ms |
コンパイル使用メモリ | 10,860 KB |
実行使用メモリ | 24,360 KB |
平均クエリ数 | 3.50 |
最終ジャッジ日時 | 2023-09-23 13:59:41 |
合計ジャッジ時間 | 1,380 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
24,036 KB |
testcase_01 | AC | 34 ms
23,732 KB |
testcase_02 | AC | 33 ms
23,716 KB |
testcase_03 | AC | 32 ms
23,580 KB |
testcase_04 | AC | 35 ms
23,692 KB |
testcase_05 | AC | 34 ms
23,880 KB |
testcase_06 | AC | 34 ms
23,856 KB |
testcase_07 | AC | 35 ms
24,360 KB |
testcase_08 | AC | 38 ms
23,704 KB |
testcase_09 | AC | 33 ms
24,036 KB |
testcase_10 | AC | 33 ms
24,308 KB |
testcase_11 | AC | 34 ms
24,068 KB |
ソースコード
import sys print("0 0") d1 = int(input()) if d1 == 0: sys.exit() print("1000000000 1000000000") d2 = int(input()) if d2 == 0: sys.exit() if d1 < d2: print("0 " + str(d1)) d3 = int(input()) if d3 == 0: sys.exit() else: print(str(int(d3 / 2)) + " " + str(d1 - int(d3 / 2))) else: print(str(1000000000 - d2) + " 1000000000") d3 = int(input()) if d3 == 0: sys.exit() else: print(str((1000000000 - d2) + int(d3 / 2)) + " " + str(1000000000 - int(d3 / 2)))