結果
問題 |
No.2561 みんな大好きmod 998
|
ユーザー |
![]() |
提出日時 | 2023-12-02 15:58:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 196 bytes |
コンパイル時間 | 481 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 377,856 KB |
最終ジャッジ日時 | 2024-09-26 19:39:04 |
合計ジャッジ時間 | 25,600 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 42 WA * 2 |
ソースコード
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)