結果
| 問題 |
No.5 数字のブロック
|
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-08 06:19:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 5,000 ms |
| コード長 | 153 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 82,468 KB |
| 実行使用メモリ | 61,088 KB |
| 最終ジャッジ日時 | 2024-07-05 01:14:08 |
| 合計ジャッジ時間 | 2,521 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 |
ソースコード
l=int(input())
n=int(input())
w=list(map(int,input().split()))
w.sort()
len=0
for i in range(n):
len+=w[i]
if len>l:
print(i)
exit()
print(n)
あかりき