Preparando MOJI

Exponentiation

2000ms 65536K

Description:

You are given integers a, b and c. Calculate ab modulo c.

Input:

Input data contains numbers a, b and c, one number per line. Each number is an integer between 1 and 100, inclusive.

Output:

Output ab mod c.

Sample Input:

2
5
40

Sample Output:

32

Sample Input:

2
5
26

Sample Output:

6

Informação

Codeforces

Provedor Codeforces

Código CF130D

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:33:40

Relacionados

Nada ainda