結果
問題 | No.513 宝探し2 |
ユーザー | No |
提出日時 | 2017-05-09 23:14:18 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 403 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 10,680 KB |
実行使用メモリ | 24,372 KB |
平均クエリ数 | 3.58 |
最終ジャッジ日時 | 2023-09-24 01:14:53 |
合計ジャッジ時間 | 1,399 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
23,664 KB |
testcase_01 | AC | 35 ms
23,976 KB |
testcase_02 | AC | 33 ms
23,988 KB |
testcase_03 | AC | 32 ms
23,700 KB |
testcase_04 | AC | 32 ms
23,604 KB |
testcase_05 | AC | 32 ms
24,372 KB |
testcase_06 | AC | 32 ms
24,288 KB |
testcase_07 | AC | 34 ms
23,432 KB |
testcase_08 | AC | 34 ms
23,816 KB |
testcase_09 | AC | 32 ms
23,672 KB |
testcase_10 | AC | 33 ms
23,948 KB |
testcase_11 | AC | 33 ms
23,976 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()) print(str(int(d3 / 2)) + " " + str(d1 - int(d3 / 2))) else: print(str(100000 - d2) + " 100000") d3 = int(input()) print(str((100000 - d2) + int(d3 / 2)) + " " + str(100000 - int(d3 / 2)))