結果

問題 No.5 数字のブロック
ユーザー sirasu
提出日時 2025-03-03 23:01:15
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 148 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 66,924 KB
最終ジャッジ日時 2025-03-03 23:01:19
合計ジャッジ時間 2,752 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24 RE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

a=int(input())
b=input()
c=list(map(int,input().split()))
c.sort()
count=0
while a-c[count]>=0 and count<len(c):
	a-=c[count]
	count+=1
print(count)
0