Type: RemoteJudge 1000ms 512MiB

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.

题目描述

aabbpp 取模的值。

输入格式

第一行输入整数 aa,第二行输入整数 bb,第三行输入整数 pp

输出格式

输出一个整数,表示 a*b mod p 的值。

3
4
5
2

提示

1a,b,p10181 \le a,b,p \le 10^{18}

位运算(B)

Not Claimed
Status
Done
Problem
10
Open Since
2025-12-22 0:00
Deadline
2026-1-10 23:59
Extension
24 hour(s)