已注销
已注销
全部文章
分类
题解(12)
归档
标签
去牛客网
登录
/
注册
已注销的博客
有善始者实繁,能克终者盖寡。
全部文章
(共3篇)
A. BowWow and the Timetable
题意:给定二进制串,问你化为10进制后,包含几个4的K次方个数。AC代码:注意:100000000与1000这种情况就可以了。 #include<bits/stdc++.h> using namespace std; int main(void){ string s; c...
基础题
CodeForces题解
2019-08-21
0
485
B. Mislove Has Lost an Array
题意:给定n,让你构造一个数组,数组中的数字只有两种情况,是1或者存在其他数字是其他数字的两倍,数组中数字的种类数不能大于r,也不能小于l,输出数组中和的最小值与最大值。思路:最小值: 最大值:AC代码: #include<bits/stdc++.h> // n-l + 2的l加1...
基础题
CodeForces题解
2019-08-21
0
941
A. Choose Two Numbers
题意:从A数组和B数组中各找到一个数字,使得它们的和不会在两个数组中出现。思路:从A、B数组各取一个最大值即可。AC代码: #include<bits/stdc++.h> using namespace std; const int maxn = 1000; int a[maxn]; i...
CodeForces题解
基础题
2019-08-19
0
524