#G. 快速幂(三)

    Type: Default 1000ms 256MiB

快速幂(三)

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

计算a的b次方取余c

Input

a,b,c不超过2的63次方

Output

输出结果

Samples

6 2 8
9 3 7
2 10 23
3 7 57
9223372036854775806 2 9223372036854775807
4
1
12
21
1

Limitation

1s, 1024KiB for each test case.

素数筛及快速幂训练

Not Claimed
Status
Done
Problem
7
Open Since
2022-12-22 0:00
Deadline
2022-12-29 23:59
Extension
24 hour(s)