結果

問題 No.2424 Josouzai
ユーザー SchneeSchnee
提出日時 2024-04-28 04:07:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 160 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 32,512 KB
最終ジャッジ日時 2024-04-28 04:07:06
合計ジャッジ時間 4,716 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,496 KB
testcase_01 AC 30 ms
10,496 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 AC 30 ms
10,496 KB
testcase_04 AC 64 ms
17,100 KB
testcase_05 AC 156 ms
32,512 KB
testcase_06 AC 158 ms
32,484 KB
testcase_07 AC 154 ms
32,232 KB
testcase_08 AC 160 ms
32,512 KB
testcase_09 AC 30 ms
10,752 KB
testcase_10 AC 50 ms
16,256 KB
testcase_11 AC 90 ms
27,384 KB
testcase_12 AC 75 ms
23,200 KB
testcase_13 AC 63 ms
17,188 KB
testcase_14 AC 94 ms
22,452 KB
testcase_15 AC 38 ms
12,416 KB
testcase_16 AC 139 ms
29,928 KB
testcase_17 AC 57 ms
15,468 KB
testcase_18 AC 61 ms
16,432 KB
testcase_19 AC 85 ms
20,820 KB
testcase_20 AC 138 ms
30,260 KB
testcase_21 AC 111 ms
25,540 KB
testcase_22 AC 63 ms
17,152 KB
testcase_23 AC 73 ms
18,576 KB
testcase_24 AC 48 ms
14,072 KB
testcase_25 AC 147 ms
31,620 KB
testcase_26 AC 112 ms
25,472 KB
testcase_27 AC 154 ms
31,836 KB
testcase_28 AC 154 ms
29,040 KB
testcase_29 AC 118 ms
27,148 KB
testcase_30 AC 49 ms
14,392 KB
testcase_31 AC 81 ms
20,200 KB
testcase_32 AC 149 ms
31,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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