結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2016-03-27 03:40:11 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 17 ms / 5,000 ms |
コード長 | 145 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 7,296 KB |
最終ジャッジ日時 | 2024-11-18 08:24:05 |
合計ジャッジ時間 | 1,250 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 34 |
ソースコード
L = input() N = input() W = map(int, raw_input().split()) W.sort() count = 0 for i in W: L -= i if L >= 0: count += 1 print count