結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 129 ms
24,960 KB
testcase_02 AC 28 ms
9,984 KB
testcase_03 AC 2,475 ms
377,344 KB
testcase_04 AC 2,334 ms
377,344 KB
testcase_05 AC 2,538 ms
377,344 KB
testcase_06 AC 2,379 ms
377,344 KB
testcase_07 AC 29 ms
9,984 KB
testcase_08 AC 30 ms
9,984 KB
testcase_09 AC 33 ms
10,496 KB
testcase_10 AC 29 ms
9,984 KB
testcase_11 WA -
testcase_12 AC 29 ms
9,984 KB
testcase_13 AC 29 ms
9,984 KB
testcase_14 AC 29 ms
9,984 KB
testcase_15 WA -
testcase_16 AC 30 ms
9,984 KB
testcase_17 AC 29 ms
9,984 KB
testcase_18 AC 29 ms
10,112 KB
testcase_19 WA -
testcase_20 AC 30 ms
10,112 KB
testcase_21 AC 29 ms
9,984 KB
testcase_22 AC 28 ms
9,984 KB
testcase_23 AC 29 ms
10,112 KB
testcase_24 AC 29 ms
9,984 KB
testcase_25 AC 29 ms
9,984 KB
testcase_26 WA -
testcase_27 AC 2,298 ms
377,344 KB
testcase_28 AC 644 ms
100,608 KB
testcase_29 AC 206 ms
35,072 KB
testcase_30 AC 591 ms
97,024 KB
testcase_31 AC 1,143 ms
194,688 KB
testcase_32 AC 316 ms
48,512 KB
testcase_33 AC 204 ms
35,072 KB
testcase_34 AC 2,308 ms
377,344 KB
testcase_35 AC 191 ms
33,664 KB
testcase_36 AC 192 ms
33,664 KB
testcase_37 AC 108 ms
20,480 KB
testcase_38 AC 386 ms
59,136 KB
testcase_39 AC 648 ms
97,024 KB
testcase_40 AC 620 ms
97,024 KB
testcase_41 AC 391 ms
59,136 KB
testcase_42 AC 725 ms
100,608 KB
testcase_43 AC 106 ms
20,480 KB
testcase_44 AC 292 ms
45,440 KB
testcase_45 AC 1,806 ms
272,512 KB
testcase_46 AC 252 ms
40,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as it
n,k= map(int,input().split())
a= list(map(int,input().split()))
ans= 0
num= list(it.combinations(a,k))
for i in range(len(num)):
  x= sum(num[i])
  if (x % 99824453) <= (x % 998):
    ans += 1
print(ans % 998)
0