結果

問題 No.2329 Nafmo、イカサマをする
ユーザー ntudantuda
提出日時 2023-06-10 12:57:18
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 325 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 327,180 KB
最終ジャッジ日時 2023-08-30 21:32:58
合計ジャッジ時間 10,406 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
78,160 KB
testcase_01 AC 69 ms
71,228 KB
testcase_02 AC 69 ms
71,272 KB
testcase_03 AC 70 ms
71,364 KB
testcase_04 AC 71 ms
71,136 KB
testcase_05 AC 71 ms
71,332 KB
testcase_06 AC 71 ms
71,284 KB
testcase_07 AC 70 ms
71,400 KB
testcase_08 AC 107 ms
86,384 KB
testcase_09 AC 72 ms
71,380 KB
testcase_10 AC 71 ms
71,396 KB
testcase_11 AC 74 ms
75,908 KB
testcase_12 AC 77 ms
76,140 KB
testcase_13 AC 74 ms
75,880 KB
testcase_14 AC 70 ms
71,312 KB
testcase_15 AC 71 ms
71,424 KB
testcase_16 AC 77 ms
76,064 KB
testcase_17 AC 71 ms
71,496 KB
testcase_18 AC 74 ms
75,920 KB
testcase_19 AC 113 ms
88,176 KB
testcase_20 AC 79 ms
76,268 KB
testcase_21 AC 77 ms
75,920 KB
testcase_22 AC 76 ms
76,084 KB
testcase_23 AC 76 ms
76,172 KB
testcase_24 AC 71 ms
71,608 KB
testcase_25 AC 78 ms
76,048 KB
testcase_26 AC 72 ms
71,576 KB
testcase_27 AC 74 ms
75,956 KB
testcase_28 AC 72 ms
71,336 KB
testcase_29 AC 181 ms
106,616 KB
testcase_30 AC 77 ms
76,060 KB
testcase_31 AC 70 ms
71,392 KB
testcase_32 AC 72 ms
71,328 KB
testcase_33 AC 75 ms
75,820 KB
testcase_34 AC 74 ms
75,824 KB
testcase_35 AC 79 ms
76,240 KB
testcase_36 AC 1,218 ms
246,288 KB
testcase_37 AC 81 ms
76,196 KB
testcase_38 AC 77 ms
75,952 KB
testcase_39 AC 561 ms
200,972 KB
testcase_40 AC 358 ms
158,544 KB
testcase_41 TLE -
testcase_42 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,K = map(int,input().split())
A = list(map(int,input().split())) + [0]

S = set(A)
for i in range(K-1):
    S2 = set()
    for a in A:
        for b in S:
            d = a + b
            if d <= M:
                S2.add(d)
    S = S2

S = list(S)
S.sort()
#print(S)
from bisect import *
print(S[bisect_right(S,M) - 1])
0