結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
|
| 提出日時 | 2023-08-28 12:15:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 59,136 KB |
| 最終ジャッジ日時 | 2024-12-29 10:57:13 |
| 合計ジャッジ時間 | 3,429 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
l = int(input())
n = int(input())
w = [int(i) for i in input().split()]
w.sort()
answer = 0
sum0 = 0
for i in w:
sum0 += i
if sum0 < l:
answer += 1
else:
break
print(answer)