Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
Super A^B mod C
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB
Total submit users: 30, Accepted users: 8
Problem 10671 : No special judgement
Problem description
  计算A^B%C的结果,A^B是指AB次方。

Input
  多组测试数据,每组数据仅一行,分别为ABC的值。

A,B,C均为正整数。(1<=A,C<=1000000000,1<=B<=10^1000000).

Output
  对于每组测试数据,输出一行,为A^B%C的值。

Sample Input
3 3 3
4 4 4
Sample Output
0
0
Problem Source
  FZU 1759

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2002 today,16258729 total, since 2010-05-07