最搞笑的样例解释(一)
CF1091G
省流:分解大数
样例输入 1
21
样例输出 1
! 3 7
Note
We start by reading the first line containing the integer
-
-
-
-
- Square root of
16 . The answer is11 , as(11 \cdot 11) \bmod 21 = 121 \bmod 21 = 16 . Note that the answer may as well be10 . - Square root of
5 . There is nox such thatx^2 \bmod 21 = 5 , so the output is-1 . -
We conclude that our calculator is working, stop fooling around and realise that