上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: A.线性判断。 #include<bits/stdc++.h> using namespace std; int n,a[105] = {0}; int main() { ios::sync_with_stdio(0); cin >> n; for(int i = 1;i <= n;i++) cin 阅读全文
posted @ 2017-07-23 14:27 zzzzzzzzhu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: A.连续1的个数,0用来分割,注意连续的0。 #include<bits/stdc++.h> using namespace std; int n; string s; int main() { ios::sync_with_stdio(0); cin >> n >> s; int now = 0, 阅读全文
posted @ 2017-07-19 11:40 zzzzzzzzhu 阅读(142) 评论(0) 推荐(0) 编辑
摘要: A. 每条人行道有六条车道会撞到。 #include<bits/stdc++.h> using namespace std; int a[4],b[4],c[4],d[4]; int main() { ios::sync_with_stdio(0); for(int i = 0;i < 4;i++) 阅读全文
posted @ 2017-06-03 00:33 zzzzzzzzhu 阅读(369) 评论(0) 推荐(0) 编辑
摘要: A.统计两个guard之间的钞票数。 #include<bits/stdc++.h> #define MOD 1000000009 using namespace std; int a,b,c,n; int main() { ios::sync_with_stdio(false); cin >> a 阅读全文
posted @ 2017-05-14 02:42 zzzzzzzzhu 阅读(238) 评论(0) 推荐(0) 编辑
摘要: A.求两个时间比较一下。 #include<bits/stdc++.h> using namespace std; int n,t,k,d; int main() { ios::sync_with_stdio(false); cin >> n >> t >> k >> d; int tt = n/k 阅读全文
posted @ 2017-05-13 02:35 zzzzzzzzhu 阅读(243) 评论(0) 推荐(0) 编辑
摘要: A. 严格按照题目给的两个条件来。 #include<bits/stdc++.h> using namespace std; int n,a[1005],b[1005]; int main() { ios::sync_with_stdio(false); cin >> n; for(int i = 阅读全文
posted @ 2017-05-08 15:57 zzzzzzzzhu 阅读(200) 评论(0) 推荐(0) 编辑
摘要: A.当l == r时,肯定输出这个数就可以了,当存在两个或两个以上连续的数时,2肯定是最多的数,或最多的数之一。 #include<bits/stdc++.h> using namespace std; int l,r; int main() { ios::sync_with_stdio(false 阅读全文
posted @ 2017-05-05 23:18 zzzzzzzzhu 阅读(238) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/contest/161101#overview A.判断B是否能整除A的每一个素因子。 #include<bits/stdc++.h> using namespace std; int prime[1000005],vis[1000005] = {0}; lon 阅读全文
posted @ 2017-05-05 01:05 zzzzzzzzhu 阅读(289) 评论(0) 推荐(0) 编辑
摘要: A.找最小的数,看每个数跟它的差是否被k整除。 #include<bits/stdc++.h> #define MOD 1000000007 using namespace std; int n,cnt[100005] = {0},ans[100005],two[100005]; int main( 阅读全文
posted @ 2017-05-02 06:28 zzzzzzzzhu 阅读(195) 评论(0) 推荐(0) 编辑
摘要: A.暴力把每个位置的字符改成另外25个字符,判断是否回文。 #include<bits/stdc++.h> using namespace std; string s; int main() { ios::sync_with_stdio(false); cin >> s; for(int i = 0 阅读全文
posted @ 2017-04-22 10:45 zzzzzzzzhu 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页