結果
| 問題 |
No.2561 みんな大好きmod 998
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-09 11:35:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 2,507 ms / 4,000 ms |
| コード長 | 201 bytes |
| コンパイル時間 | 376 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-16 00:06:15 |
| 合計ジャッジ時間 | 31,234 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 |
ソースコード
from itertools import combinations n,k=map(int,input().split()) a=list(map(int,input().split())) res=0 for cmb in combinations(a,k): if sum(cmb)%998244353<=sum(cmb)%998: res=(res+1)%998 print(res)