結果
| 問題 |
No.5 数字のブロック
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-13 13:51:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 187 bytes |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 82,332 KB |
| 実行使用メモリ | 66,700 KB |
| 最終ジャッジ日時 | 2024-10-09 11:48:41 |
| 合計ジャッジ時間 | 3,227 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 RE * 10 |
ソースコード
l = int(input())
n = int(input())
w = sorted((int(n) for n in input().split()))
count = 0
ww = w[0]
for i in range(l):
if ww <= l:
count += 1
ww += w[i+1]
print(count)