摘要: A - Candies 大意就是 x(1 + .... 2 ^ (k - 1) ) = x * (2 ^ k - 1) = n; 求x 所以 x = n / (2 ^ k - 1);//写个快速幂就可以求解了 #include <iostream> using namespace std; //x 阅读全文
posted @ 2020-05-24 21:17 IIlIlIlI 阅读(131) 评论(0) 推荐(0) 编辑