結果

問題 No.156 キャンディー・ボックス
ユーザー NeochiNeochi
提出日時 2017-07-06 20:52:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 203 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-15 22:02:09
合計ジャッジ時間 8,729 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
10,752 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 32 ms
10,624 KB
testcase_03 AC 31 ms
10,752 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 92 ms
10,624 KB
testcase_06 AC 158 ms
10,624 KB
testcase_07 AC 131 ms
10,624 KB
testcase_08 AC 114 ms
10,752 KB
testcase_09 AC 89 ms
10,624 KB
testcase_10 AC 127 ms
10,624 KB
testcase_11 AC 83 ms
10,752 KB
testcase_12 AC 154 ms
10,624 KB
testcase_13 AC 110 ms
10,624 KB
testcase_14 AC 85 ms
10,624 KB
testcase_15 AC 124 ms
10,752 KB
testcase_16 AC 91 ms
10,752 KB
testcase_17 AC 110 ms
10,624 KB
testcase_18 AC 59 ms
10,752 KB
testcase_19 AC 64 ms
10,624 KB
testcase_20 AC 31 ms
10,624 KB
testcase_21 AC 38 ms
10,624 KB
testcase_22 AC 57 ms
10,624 KB
testcase_23 AC 44 ms
10,624 KB
testcase_24 AC 29 ms
10,752 KB
testcase_25 AC 29 ms
10,624 KB
testcase_26 AC 31 ms
10,624 KB
testcase_27 AC 29 ms
10,752 KB
testcase_28 AC 29 ms
10,752 KB
testcase_29 AC 30 ms
10,624 KB
testcase_30 AC 380 ms
10,624 KB
testcase_31 AC 141 ms
10,752 KB
testcase_32 TLE -
testcase_33 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

M = list(map(int, input().split(" ")))
N = list(map(int, input().split(" ")))
count = 0
for i in range(M[1]):
    N.sort()
    N[0] -= 1
    if N[0] == 0:
        count += 1
        N.pop(0)
print(count)
0