#P5591. 小猪佩奇学数学
小猪佩奇学数学
Description
Peppa and George are learning math.
Given , compute
$$\sum_{i=0}^n \binom n i \times p^{i} \times \left\lfloor \frac{i}{k} \right\rfloor \bmod 998244353$$Input Format
Three positive integers, representing .
Output Format
One positive integer, representing the answer.
3 3 2
54
Hint
For of the testdata, .
For another of the testdata, .
For of the testdata, , and .
A Friendly Reminder from the Problem Setter
Please pay attention to the impact of constant factors on your program’s efficiency.
Translated by ChatGPT 5
京公网安备 11011102002149号