【模板】快速幂
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.
题目描述
给你三个整数 ,求 。
输入格式
输入只有一行三个整数,分别代表 。
输出格式
输出一行一个字符串 a^b mod p=s
,其中 分别为题目给定的值, 为运算结果。
2 10 9
2^10 mod 9=7
提示
样例解释
,。
数据规模与约定
对于 的数据,保证 ,,。
C23暑假作业8-数学-基础题
- Status
- Done
- Problem
- 15
- Open Since
- 2024-7-5 0:00
- Deadline
- 2024-10-27 23:59
- Extension
- 24 hour(s)