結果

問題 No.2424 Josouzai
ユーザー machoniumpmachoniump
提出日時 2023-09-12 22:18:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 10,764 KB
実行使用メモリ 29,904 KB
最終ジャッジ日時 2023-09-12 22:18:23
合計ジャッジ時間 9,879 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,160 KB
testcase_01 AC 15 ms
8,132 KB
testcase_02 AC 15 ms
8,036 KB
testcase_03 WA -
testcase_04 AC 60 ms
14,784 KB
testcase_05 AC 199 ms
29,896 KB
testcase_06 AC 186 ms
29,904 KB
testcase_07 AC 185 ms
29,864 KB
testcase_08 AC 189 ms
29,904 KB
testcase_09 AC 15 ms
8,092 KB
testcase_10 AC 47 ms
14,772 KB
testcase_11 AC 111 ms
27,684 KB
testcase_12 AC 85 ms
22,524 KB
testcase_13 AC 60 ms
14,800 KB
testcase_14 AC 99 ms
19,884 KB
testcase_15 AC 26 ms
10,132 KB
testcase_16 AC 159 ms
26,940 KB
testcase_17 AC 48 ms
13,520 KB
testcase_18 AC 55 ms
13,976 KB
testcase_19 AC 88 ms
18,076 KB
testcase_20 AC 165 ms
27,256 KB
testcase_21 AC 122 ms
22,580 KB
testcase_22 AC 59 ms
14,400 KB
testcase_23 AC 71 ms
15,912 KB
testcase_24 AC 38 ms
12,124 KB
testcase_25 AC 172 ms
28,400 KB
testcase_26 AC 132 ms
22,636 KB
testcase_27 AC 177 ms
29,132 KB
testcase_28 AC 152 ms
26,000 KB
testcase_29 AC 134 ms
24,092 KB
testcase_30 AC 42 ms
12,608 KB
testcase_31 AC 81 ms
17,220 KB
testcase_32 AC 173 ms
28,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k=map(int,input().split())
a=[0]+sorted(list(map(int,input().split())))
for i in range(n):
    a[i+1]+=a[i]
for i in range(n+1):
    if k<a[i]:
        print(i-1,k-a[i-1])
        exit()
0