結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2020-06-16 10:23:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 172 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-07-03 11:47:57 |
合計ジャッジ時間 | 2,082 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 5 RE * 29 |
ソースコード
L = int(input()) N = int(input()) W = list(map(int,input())) W.sort() cnt=0 for i in W: if L - i>0: cnt+=1 L-=i else: break print(cnt)