結果

問題 No.2561 みんな大好きmod 998
ユーザー くきみかんくきみかん
提出日時 2023-12-02 15:58:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 377,332 KB
最終ジャッジ日時 2023-12-02 15:59:23
合計ジャッジ時間 20,979 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,984 KB
testcase_01 AC 92 ms
24,960 KB
testcase_02 AC 25 ms
9,984 KB
testcase_03 AC 1,734 ms
377,332 KB
testcase_04 AC 1,732 ms
377,332 KB
testcase_05 AC 1,648 ms
377,332 KB
testcase_06 AC 1,531 ms
377,332 KB
testcase_07 AC 25 ms
9,984 KB
testcase_08 AC 24 ms
9,984 KB
testcase_09 AC 27 ms
10,496 KB
testcase_10 AC 24 ms
9,984 KB
testcase_11 AC 250 ms
59,136 KB
testcase_12 AC 24 ms
9,984 KB
testcase_13 AC 26 ms
9,984 KB
testcase_14 AC 30 ms
9,984 KB
testcase_15 WA -
testcase_16 AC 24 ms
9,984 KB
testcase_17 AC 24 ms
9,984 KB
testcase_18 AC 24 ms
10,112 KB
testcase_19 WA -
testcase_20 AC 24 ms
10,112 KB
testcase_21 AC 25 ms
9,984 KB
testcase_22 AC 26 ms
9,984 KB
testcase_23 AC 25 ms
10,112 KB
testcase_24 AC 25 ms
9,984 KB
testcase_25 AC 24 ms
9,984 KB
testcase_26 AC 335 ms
77,184 KB
testcase_27 AC 1,548 ms
377,332 KB
testcase_28 AC 427 ms
100,608 KB
testcase_29 AC 136 ms
35,072 KB
testcase_30 AC 400 ms
97,024 KB
testcase_31 AC 794 ms
194,688 KB
testcase_32 AC 199 ms
48,512 KB
testcase_33 AC 154 ms
35,072 KB
testcase_34 AC 1,558 ms
377,332 KB
testcase_35 AC 126 ms
33,536 KB
testcase_36 AC 125 ms
33,536 KB
testcase_37 AC 71 ms
20,480 KB
testcase_38 AC 258 ms
59,136 KB
testcase_39 AC 394 ms
97,024 KB
testcase_40 AC 434 ms
97,024 KB
testcase_41 AC 261 ms
59,136 KB
testcase_42 AC 452 ms
100,608 KB
testcase_43 AC 77 ms
20,480 KB
testcase_44 AC 209 ms
45,440 KB
testcase_45 AC 1,187 ms
272,384 KB
testcase_46 AC 160 ms
40,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
n,k = map(int, input().split())
a = list(map(int, input().split()))

s = list(itertools.combinations(a,k))
cnt = 0
for i in s:
    if sum(i) < 998:
        cnt += 1
print(cnt%998)
0