結果

問題 No.2424 Josouzai
ユーザー taro2023
提出日時 2023-08-18 21:15:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 32,512 KB
最終ジャッジ日時 2024-11-28 05:16:03
合計ジャッジ時間 4,063 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 32 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b= map(int, input().split())
c = list(map(int, input().split()))
c=sorted(c)
e=0
if c[0]>b:
    exit()
for i in range(len(c)):
    e+=c[i]
    if e>=b:
        e-=c[i]
        break
print(i,b-e)
0