首页 > 其他 > 详细

[LeetCode] Super Pow 超级次方

时间:2016-07-08 01:31:12      阅读:520      评论:0      收藏:0      [点我收藏+]

 

Your task is to calculate ab mod 1337 where a is a positive integer and b is an extremely large positive integer given in the form of an array.

Example1:

a = 2
b = [3]

Result: 8

Example2:

a = 2
b = [1,0]

Result: 1024

Credits:
Special thanks to @Stomach_ache for adding this problem and creating all test cases.

 

[LeetCode] Super Pow 超级次方

原文:http://www.cnblogs.com/grandyang/p/5651982.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!