![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
zhangjinlei321
这个作者很懒,什么都没留下…
展开
-
3.30训练
1. 题目:Vicious Keyboard 地址:http://codeforces.com/problemset/problem/801/A 大体题意是求给出的一串字符中VK的最大数量,最多可以改变其中一个字符。 AC代码: #include <iostream> #include <cstdio> #include <cstring> #inc...原创 2019-03-31 21:20:22 · 129 阅读 · 0 评论 -
Bits CodeForces - 484A 贪心
Let's denote asthe number of bits set ('1' bits) in the binary representation of the non-negative integerx. You are given multiple queries consisting of pairs of integerslandr. For each query, ...原创 2019-04-07 21:06:33 · 98 阅读 · 0 评论 -
Equivalent Strings CodeForces - 559B 递归
Today on a lecture about strings Gerald learned a new definition of string equivalency. Two stringsaandbof equal length are calledequivalentin one of the two cases: They are equal. If we split...原创 2019-04-08 15:52:57 · 157 阅读 · 0 评论 -
C - Number of Ways CodeForces - 466C
给定一个序列,问有多少种方案可以将此序列分割成3个序列元素和完全相同的子序列。(子序列不能为空)。即问有多少个点对(i,j)满足a[1]+...+a[i-1]=a[i]+a[i+1]+...+a[j]=a[j+1]+a[j+2]+...+a[n] Input 第一行一个整数n,表示序列长度。(1<=n<=5*10^5) 第二行n个整数分别表示序列的元素。(|a[i]|<=10...原创 2019-04-14 16:56:48 · 171 阅读 · 0 评论