結果
問題 | No.156 キャンディー・ボックス |
ユーザー |
|
提出日時 | 2021-02-13 01:03:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,000 KB |
最終ジャッジ日時 | 2024-07-20 02:35:39 |
合計ジャッジ時間 | 8,889 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 19 WA * 9 TLE * 1 -- * 1 |
ソースコード
box,toru=map(int,input().split()) ls=[int(i) for i in input().split()] ls.sort() flg=0 while True: for i in range(len(ls)): if ls[i]!=0: ls[i]-=1 toru-=1 if toru==0: flg=1 break if flg==1: break print(ls.count(0))