結果
問題 | No.1015 おつりは要らないです |
ユーザー | near12 |
提出日時 | 2020-04-03 21:39:08 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 470 bytes |
コンパイル時間 | 116 ms |
コンパイル使用メモリ | 10,676 KB |
実行使用メモリ | 18,996 KB |
最終ジャッジ日時 | 2023-09-16 00:39:49 |
合計ジャッジ時間 | 7,320 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 17 ms
7,792 KB |
testcase_02 | AC | 16 ms
7,788 KB |
testcase_03 | AC | 17 ms
7,764 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 16 ms
7,796 KB |
testcase_08 | AC | 16 ms
7,956 KB |
testcase_09 | AC | 16 ms
7,820 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 225 ms
18,276 KB |
testcase_16 | AC | 228 ms
18,472 KB |
testcase_17 | AC | 240 ms
18,716 KB |
testcase_18 | AC | 227 ms
18,504 KB |
testcase_19 | AC | 227 ms
18,508 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 16 ms
7,796 KB |
testcase_31 | WA | - |
testcase_32 | AC | 56 ms
9,988 KB |
testcase_33 | AC | 196 ms
18,912 KB |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
ソースコード
n, x, y, z = map(int, input().split()) a = sorted(map(int, input().split())) ans = 'Yes' for i in a: if i // 10000 > 0 and z: num = min(i // 10000, z) z -= num i -= 10000 * num if i // 5000 > 0 and y: num = min(i // 5000, y) y -= num i -= 5000 * num if i // 1000 > 0 and x: num = min(i // 1000, x) y -= num i -= 1000 * num if i > 0 or x + y + z <= 0: ans = 'No' print(ans)