結果

問題 No.2424 Josouzai
ユーザー SchneeSchnee
提出日時 2024-04-28 03:54:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 104 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,632 KB
最終ジャッジ日時 2024-04-28 03:55:03
合計ジャッジ時間 4,780 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,752 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 WA -
testcase_04 AC 58 ms
17,096 KB
testcase_05 AC 142 ms
32,504 KB
testcase_06 AC 134 ms
32,360 KB
testcase_07 AC 142 ms
32,224 KB
testcase_08 AC 139 ms
32,632 KB
testcase_09 AC 25 ms
10,496 KB
testcase_10 AC 51 ms
16,504 KB
testcase_11 AC 83 ms
27,376 KB
testcase_12 AC 68 ms
23,064 KB
testcase_13 AC 60 ms
17,180 KB
testcase_14 AC 87 ms
22,700 KB
testcase_15 AC 34 ms
12,416 KB
testcase_16 AC 121 ms
29,796 KB
testcase_17 AC 50 ms
15,580 KB
testcase_18 AC 56 ms
16,428 KB
testcase_19 AC 77 ms
20,816 KB
testcase_20 AC 124 ms
29,808 KB
testcase_21 AC 101 ms
25,668 KB
testcase_22 AC 57 ms
17,060 KB
testcase_23 AC 70 ms
18,816 KB
testcase_24 AC 45 ms
14,160 KB
testcase_25 AC 148 ms
31,360 KB
testcase_26 AC 96 ms
25,328 KB
testcase_27 AC 133 ms
31,836 KB
testcase_28 AC 115 ms
28,900 KB
testcase_29 AC 110 ms
27,140 KB
testcase_30 AC 46 ms
14,336 KB
testcase_31 AC 74 ms
20,276 KB
testcase_32 AC 136 ms
31,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a,i=sorted(map(int,input().split())),0
while k>a[i]:k-=a[i];i+=1
print(i,k)
0