摘要: A - Candies 给定一个n,输出满足 x+2x+4x+...+2^(k-1)x=n 的x,根据等比数列前n项和的公式,while循环找判断个式子是否成立 #include <iostream> #include <string> #include <vector> #include <cst 阅读全文
posted @ 2020-05-25 16:39 一只幽灵飘过 阅读(106) 评论(0) 推荐(0) 编辑