import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); BigInteger x = in.nextBigInteger(); BigInteger y = in.nextBigInteger(); BigInteger n = in.nextBigInteger(); System.out.println(x.modPow(y,n)); } }
点赞 3

相关推荐

专心打鱼:互联网搬运工,贴子都要偷
点赞 评论 收藏
分享
牛客网
牛客企业服务