摘要: Codeforces Round #545 (Div. 2) 题目总链接:https://codeforces.com/contest/1138 A. Sushi for Two 题意: 给出n个数,只有1或者2,要求找出最长的连续的1,后面跟着相等长度的连续的2。问这个最长长度为多少。 题解: 模 阅读全文
posted @ 2019-03-10 22:34 heyuhhh 阅读(405) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #544 (Div. 3) D. Zero Quantity Maximization 题目链接:https://codeforces.com/contest/1133/problem/D 题意: 给出ai,bi,然后让你确定一个数d,令ci=d*ai+bi,问怎么 阅读全文
posted @ 2019-03-10 22:19 heyuhhh 阅读(252) 评论(0) 推荐(0) 编辑
摘要: D. Stressful Training 题目链接:https://codeforces.com/contest/1132/problem/D 题意: 有n台电脑,每台电脑都有初始电量ai,也有一个耗电量bi,意即每1s耗电多少,现在你有一个充电器,它每s可以给一台电脑充x的点亮。 问x最少为多少 阅读全文
posted @ 2019-03-10 21:39 heyuhhh 阅读(169) 评论(0) 推荐(0) 编辑
摘要: D. Slime 题目链接:https://codeforces.com/contest/1038/problem/D 题意: 给出两个数,然后每次可以对相邻的两个数合并,比如x,y,那么合并过后就是x-y或者y-x,这里怎么去减是自己决定的。问怎么合并,最后得到的那个数最大。 题解: 这题主要关键 阅读全文
posted @ 2019-03-10 21:27 heyuhhh 阅读(106) 评论(0) 推荐(0) 编辑