結果
| 問題 | No.2561 みんな大好きmod 998 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-02 15:03:37 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,575 ms / 4,000 ms |
| + 597µs | |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 21,472 KB |
| 実行使用メモリ | 15,912 KB |
| 最終ジャッジ日時 | 2026-09-05 00:58:07 |
| 合計ジャッジ時間 | 23,149 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)