随笔分类 - 其它--Codeforces
Codeforces Round #540 B. Tanya and Candies
摘要:题目链接:点击进入 这道题我们只需要将给dad的糖果拿出,然后分成奇数位的糖果和偶数位的糖果,计算总总量是否相等。但是,这道题我们会受到运行时间限制,普通的方法,不行 因此,我们需要找到这样一个关系式: OSuf + EPre = ESuf + OPre OSuf:被删位置后面,奇数位的数字和 ES
Codeforces Round #540 A. Water Buying
摘要:Polycarp wants to cook a soup. To do it, he needs to buy exactly n liters of water. There are only two types of water bottles in the nearby shop — 1-l
Codeforces Round #509 (Div. 2)---Problem A
摘要:第一次参加codeforces,凌晨起来很新奇,读起来有难度,不过相信自己。 题目链接:点击进入 关键词:2n+1 integer points,increase by 1. 要求的求出最小的高。首先因为是每个依次+1的,因此,首先是均分,余数为0则,这就是最小值,不为0,则加1便是最小值。这样分为