結果
| 問題 |
No.5 数字のブロック
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-08 19:24:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 185 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 60,032 KB |
| 最終ジャッジ日時 | 2024-11-16 01:40:38 |
| 合計ジャッジ時間 | 2,822 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
l = int(input())
n = int(input())
w = list(map(int,input().split()))
w.sort()
c = 0
for i in range(n):
if l > w[i]:
l -= w[i]
c += 1
else:
print(c)
exit()
print(c)