結果

問題 No.2561 みんな大好きmod 998
ユーザー kamath0165kamath0165
提出日時 2023-12-02 15:44:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 486,020 KB
最終ジャッジ日時 2023-12-02 15:44:38
合計ジャッジ時間 21,502 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 102 ms
96,368 KB
testcase_02 AC 38 ms
53,460 KB
testcase_03 AC 1,758 ms
486,016 KB
testcase_04 AC 1,735 ms
486,012 KB
testcase_05 AC 1,688 ms
486,016 KB
testcase_06 AC 1,720 ms
486,020 KB
testcase_07 AC 38 ms
53,460 KB
testcase_08 AC 39 ms
53,460 KB
testcase_09 AC 51 ms
66,500 KB
testcase_10 AC 36 ms
53,460 KB
testcase_11 WA -
testcase_12 AC 36 ms
53,460 KB
testcase_13 AC 36 ms
53,460 KB
testcase_14 AC 41 ms
53,460 KB
testcase_15 WA -
testcase_16 AC 40 ms
53,460 KB
testcase_17 AC 43 ms
53,460 KB
testcase_18 AC 44 ms
59,100 KB
testcase_19 WA -
testcase_20 AC 45 ms
62,384 KB
testcase_21 AC 35 ms
53,460 KB
testcase_22 AC 39 ms
53,460 KB
testcase_23 AC 41 ms
59,136 KB
testcase_24 AC 39 ms
53,460 KB
testcase_25 AC 39 ms
53,460 KB
testcase_26 WA -
testcase_27 AC 1,694 ms
486,012 KB
testcase_28 AC 363 ms
180,320 KB
testcase_29 AC 131 ms
105,412 KB
testcase_30 AC 294 ms
163,408 KB
testcase_31 AC 745 ms
288,772 KB
testcase_32 AC 166 ms
124,068 KB
testcase_33 AC 129 ms
105,404 KB
testcase_34 AC 1,500 ms
486,020 KB
testcase_35 AC 125 ms
104,952 KB
testcase_36 AC 122 ms
104,824 KB
testcase_37 AC 83 ms
90,312 KB
testcase_38 AC 205 ms
137,032 KB
testcase_39 AC 298 ms
163,408 KB
testcase_40 AC 332 ms
163,400 KB
testcase_41 AC 210 ms
137,028 KB
testcase_42 AC 331 ms
180,348 KB
testcase_43 AC 84 ms
90,312 KB
testcase_44 AC 166 ms
122,020 KB
testcase_45 AC 949 ms
362,212 KB
testcase_46 AC 157 ms
108,812 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