2017年10月2日

Codeforces 789 B Masha and geometric depression 思维

摘要: 题目链接: http://codeforces.com/contest/789/problem/B 题目描述: 大概是给首项b1和公比q,数列中的数的绝对值不能超过 l,和不好的数的个数 m,不好的数定义为:不是数列中的数,让你求出最后形成的数列最多有多少个(在形成数列的时候,如果出现了不好的数,不 阅读全文

posted @ 2017-10-02 23:30 FriskyPuppy 阅读(142) 评论(0) 推荐(0) 编辑

Codeforces 789 A Anastasia and pebbles 水题

摘要: 题目链接: http://codeforces.com/contest/789/problem/A 题目描述: 水题 解题思路: 挨个遍历除以容量就可以 代码: #include <iostream> #include <cstdio> #include <map> #include <iterat 阅读全文

posted @ 2017-10-02 23:23 FriskyPuppy 阅读(95) 评论(0) 推荐(0) 编辑

Codeforces 846 C Four Segments 前缀和 暴力 枚举

摘要: 题目链接: http://codeforces.com/contest/846/problem/C 题目描述: 在一串数中找到三个坐标delim0, delim1, delim2, 使得 the value of res = sum(0, delim0) - sum(delim0, delim1)  阅读全文

posted @ 2017-10-02 14:53 FriskyPuppy 阅读(354) 评论(0) 推荐(0) 编辑

导航