Dr. Yao is involved in a secret research on the topic of the properties of recurrent function. Some of the functions in this research are in the following pattern:
in which set {ai} = {1, 2, …, d-1} and {bi} = {0, 1, …, d-1}.
We denote:
Yao's question is that, given two positive integer m and k, could you find a minimal non-negative integer x that
2 1 1 0 4 7 2 1 0 1 100 200 -1
1 NO
时间上限 | 内存上限 |
1000 | 65536 |
·
·
·
·