64位整数乘法
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 的值。
3
4
5
2
提示
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 对 p 取模的值。
第一行输入整数 a,第二行输入整数 b,第三行输入整数 p。
输出一个整数,表示 a*b mod p 的值。
3
4
5
2
1≤a,b,p≤1018