摘要: class Solution {public: int mySqrt(int x) { if(x<2)return x; int l = 1 ; int r = x/2; while(l<r){ int m = r - (r - l)/2; if(m>x/m) r = m - 1; else l = 阅读全文
posted @ 2017-07-28 15:39 朽木の半夏 阅读(93) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int superPow(int a, vector<int>& b) { int md = 1337; a%=md; int len = b.size(); int fu = a; int ans = 1; for(int i = len - 1; 阅读全文
posted @ 2017-07-28 14:54 朽木の半夏 阅读(111) 评论(0) 推荐(0) 编辑