結果

問題 No.2329 Nafmo、イカサマをする
ユーザー titiatitia
提出日時 2023-07-25 04:17:04
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 212 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 311,048 KB
最終ジャッジ日時 2024-04-09 22:09:49
合計ジャッジ時間 7,136 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
59,756 KB
testcase_01 AC 30 ms
51,820 KB
testcase_02 AC 30 ms
53,076 KB
testcase_03 AC 30 ms
52,832 KB
testcase_04 AC 34 ms
52,660 KB
testcase_05 AC 30 ms
53,288 KB
testcase_06 AC 30 ms
53,624 KB
testcase_07 AC 30 ms
52,748 KB
testcase_08 AC 57 ms
74,224 KB
testcase_09 AC 31 ms
52,868 KB
testcase_10 AC 31 ms
53,088 KB
testcase_11 AC 37 ms
60,376 KB
testcase_12 AC 37 ms
58,244 KB
testcase_13 AC 38 ms
59,220 KB
testcase_14 AC 35 ms
52,064 KB
testcase_15 AC 33 ms
52,480 KB
testcase_16 AC 42 ms
60,888 KB
testcase_17 AC 36 ms
52,940 KB
testcase_18 AC 36 ms
53,224 KB
testcase_19 AC 64 ms
74,392 KB
testcase_20 AC 40 ms
58,884 KB
testcase_21 AC 38 ms
59,028 KB
testcase_22 AC 39 ms
61,292 KB
testcase_23 AC 37 ms
59,428 KB
testcase_24 AC 33 ms
53,108 KB
testcase_25 AC 40 ms
60,504 KB
testcase_26 AC 34 ms
53,384 KB
testcase_27 AC 36 ms
58,136 KB
testcase_28 AC 31 ms
52,284 KB
testcase_29 AC 110 ms
93,644 KB
testcase_30 AC 36 ms
58,748 KB
testcase_31 AC 32 ms
52,344 KB
testcase_32 AC 33 ms
52,884 KB
testcase_33 AC 37 ms
58,364 KB
testcase_34 AC 36 ms
58,712 KB
testcase_35 AC 42 ms
60,392 KB
testcase_36 AC 571 ms
255,704 KB
testcase_37 AC 39 ms
60,616 KB
testcase_38 AC 36 ms
59,952 KB
testcase_39 AC 367 ms
177,240 KB
testcase_40 AC 186 ms
136,532 KB
testcase_41 TLE -
testcase_42 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,K=map(int,input().split())
A=list(map(int,input().split()))

S={0}

for i in range(K):
    NS={0}
    for s in S:
        for a in A:
            if s+a<=M:
                NS.add(s+a)
    S=NS

print(max(S))
0