TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P1718
  • Problem
  • P1718幂与余
    Limits : Time Limit : 10000 MS   Memory Limit : 65536 KB
    Description

    给出三个整数A,B,C,求AB % C的值。

    Input Format

    三个空格间隔的整数A,B,C

    Output Format

    一个整数,表示最后的结果

    Sample Input

    2 5 7

    Sample Output

    4

    Hint

    0<=A<=100
    0<=B<=5000
    0<C<=10000