結果

問題 No.2424 Josouzai
ユーザー 👑 ramdos
提出日時 2023-08-15 16:54:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,632 KB
最終ジャッジ日時 2024-11-26 21:09:50
合計ジャッジ時間 4,822 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
x=sorted(list(map(int,input().split())))
ans=0
for c in x :
    if c < b:
        b-=c
        ans+=1
print(ans,b)
0