結果
問題 | No.5 数字のブロック |
ユーザー |
|
提出日時 | 2021-06-24 16:46:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 82,816 KB |
実行使用メモリ | 59,648 KB |
最終ジャッジ日時 | 2024-06-25 07:31:06 |
合計ジャッジ時間 | 2,734 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 10 |
ソースコード
L=int(input()) N=int(input()) W = input().split() W.sort(key=int) for i in range(N): if L >= int(W[i]): L -= int(W[i]) if N == i-1: print(i+1) break else: print(i) break