atcoder#ABC293E. [ABC293E] Geometric Progression
[ABC293E] Geometric Progression
Score : points
Problem Statement
Given integers , , and , find , modulo .
Constraints
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
3 4 7
5
, which equals modulo , so should be printed.
8 10 9
0
1000000000 1000000000000 998244353
919667211