码迷,mamicode.com
首页 > 其他好文 > 详细

[LeetCode] Super Pow 超级次方

时间:2016-07-08 01:33:54      阅读:489      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!