結果
問題 |
No.5 数字のブロック
|
ユーザー |
![]() |
提出日時 | 2016-07-09 00:18:43 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 7,040 KB |
最終ジャッジ日時 | 2024-10-13 07:48:40 |
合計ジャッジ時間 | 1,450 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 WA * 7 |
ソースコード
L = int(raw_input()) N = int(raw_input()) W = map(int, raw_input().split()) ans = 0 W.sort() for i in W: if L - i > 0: L = L-i ans += 1 else: break print ans