結果

問題 No.2424 Josouzai
ユーザー hiro1729hiro1729
提出日時 2023-09-08 20:22:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 143 bytes
コンパイル時間 496 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 103,556 KB
最終ジャッジ日時 2023-09-08 20:22:28
合計ジャッジ時間 9,184 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,364 KB
testcase_01 AC 74 ms
71,396 KB
testcase_02 AC 75 ms
71,348 KB
testcase_03 WA -
testcase_04 AC 96 ms
84,784 KB
testcase_05 AC 157 ms
101,532 KB
testcase_06 AC 164 ms
101,720 KB
testcase_07 AC 159 ms
101,880 KB
testcase_08 AC 164 ms
101,492 KB
testcase_09 AC 75 ms
71,216 KB
testcase_10 AC 90 ms
83,808 KB
testcase_11 AC 114 ms
103,556 KB
testcase_12 AC 101 ms
96,960 KB
testcase_13 AC 96 ms
84,280 KB
testcase_14 AC 112 ms
93,380 KB
testcase_15 AC 78 ms
76,292 KB
testcase_16 AC 148 ms
99,724 KB
testcase_17 AC 90 ms
81,168 KB
testcase_18 AC 90 ms
83,080 KB
testcase_19 AC 105 ms
90,928 KB
testcase_20 AC 144 ms
99,768 KB
testcase_21 AC 123 ms
98,716 KB
testcase_22 AC 93 ms
84,192 KB
testcase_23 AC 102 ms
87,400 KB
testcase_24 AC 83 ms
79,208 KB
testcase_25 AC 160 ms
102,120 KB
testcase_26 AC 123 ms
98,592 KB
testcase_27 AC 152 ms
100,592 KB
testcase_28 AC 133 ms
101,912 KB
testcase_29 AC 132 ms
101,664 KB
testcase_30 AC 84 ms
79,456 KB
testcase_31 AC 103 ms
89,168 KB
testcase_32 AC 151 ms
101,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int, input().split())
s = 0
for i, j in enumerate(sorted(map(int, input().split()))):
	s += j
	if s > k:
		exit(print(i, k - s + j))
0