2017年10月4日

Codeforces 789 C Functions again DP

摘要: 题目链接: http://codeforces.com/problemset/problem/789/C 题目描述: 给定一个数列, 问从某项开始加一项减一项的最大值是多少 解题思路: 先把数列分成两种情况, 一种是第一个正第二个负第三个正...... 一种是第一个负第二个正第三个负...... D 阅读全文

posted @ 2017-10-04 09:00 FriskyPuppy 阅读(214) 评论(0) 推荐(0) 编辑

Codeforces 787 A The Monster 扩欧

摘要: 题目链接: http://codeforces.com/problemset/problem/787/A 题目描述: 问等差数列c1 + a*x(a 为 常数), c2 + b*y(b 为 常数) 能不能有一项是相等的 解题思路: a*x + c1 = b*y + c2, a*x + b*(-y) 阅读全文

posted @ 2017-10-04 08:52 FriskyPuppy 阅读(207) 评论(0) 推荐(0) 编辑

导航