結果
| 問題 |
No.2561 みんな大好きmod 998
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-02 15:03:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 2,378 ms / 4,000 ms |
| コード長 | 204 bytes |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-26 17:59:17 |
| 合計ジャッジ時間 | 29,129 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 |
ソースコード
import itertools a,b=map(int,input().split()) c=list(map(int,input().split())) ans=0 for blueberry in itertools.combinations(c,b): if sum(blueberry)%998244353<=sum(blueberry)%998: ans+=1 print(ans%998)