結果

問題 No.2424 Josouzai
ユーザー Meso MesoMeso Meso
提出日時 2024-04-09 20:39:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 32,636 KB
最終ジャッジ日時 2024-04-09 20:39:31
合計ジャッジ時間 5,750 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 31 ms
10,624 KB
testcase_02 AC 30 ms
10,752 KB
testcase_03 WA -
testcase_04 AC 83 ms
17,224 KB
testcase_05 AC 167 ms
32,632 KB
testcase_06 AC 145 ms
32,480 KB
testcase_07 AC 149 ms
32,348 KB
testcase_08 AC 148 ms
32,636 KB
testcase_09 AC 27 ms
10,624 KB
testcase_10 AC 46 ms
16,372 KB
testcase_11 AC 85 ms
27,504 KB
testcase_12 AC 69 ms
23,188 KB
testcase_13 AC 60 ms
17,308 KB
testcase_14 AC 90 ms
22,576 KB
testcase_15 AC 36 ms
12,416 KB
testcase_16 AC 130 ms
29,796 KB
testcase_17 AC 69 ms
15,584 KB
testcase_18 AC 77 ms
16,552 KB
testcase_19 AC 91 ms
20,812 KB
testcase_20 AC 147 ms
29,936 KB
testcase_21 AC 118 ms
25,796 KB
testcase_22 AC 60 ms
17,256 KB
testcase_23 AC 69 ms
18,700 KB
testcase_24 AC 47 ms
14,204 KB
testcase_25 AC 136 ms
31,444 KB
testcase_26 AC 105 ms
25,460 KB
testcase_27 AC 141 ms
31,960 KB
testcase_28 AC 119 ms
29,028 KB
testcase_29 AC 122 ms
27,148 KB
testcase_30 AC 50 ms
14,516 KB
testcase_31 AC 86 ms
20,148 KB
testcase_32 AC 136 ms
31,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
A = list(map(int, input().split()))

A.sort()

i = 0
while k > A[i]:
    k -= A[i]
    i += 1
print(i, k)
0