結果
問題 | No.513 宝探し2 |
ユーザー | No |
提出日時 | 2017-05-09 23:19:21 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 500 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 10,900 KB |
実行使用メモリ | 24,356 KB |
平均クエリ数 | 3.50 |
最終ジャッジ日時 | 2023-09-24 01:14:51 |
合計ジャッジ時間 | 1,394 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
24,000 KB |
testcase_01 | AC | 34 ms
23,628 KB |
testcase_02 | AC | 33 ms
24,060 KB |
testcase_03 | AC | 32 ms
23,508 KB |
testcase_04 | AC | 31 ms
23,400 KB |
testcase_05 | AC | 36 ms
24,252 KB |
testcase_06 | AC | 33 ms
23,564 KB |
testcase_07 | AC | 33 ms
23,400 KB |
testcase_08 | AC | 33 ms
23,860 KB |
testcase_09 | AC | 33 ms
23,696 KB |
testcase_10 | AC | 34 ms
23,660 KB |
testcase_11 | AC | 33 ms
24,356 KB |
ソースコード
import sys print("0 0") d1 = int(input()) if d1 == 0: sys.exit() print("100000 100000") 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(100000 - d2) + " 100000") d3 = int(input()) if d3 == 0: sys.exit() else: print(str((100000 - d2) + int(d3 / 2)) + " " + str(100000 - int(d3 / 2)))