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