05 2017 档案

摘要: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 阅读(249) 评论(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 阅读(255) 评论(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 阅读(209) 评论(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 阅读(245) 评论(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 阅读(294) 评论(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 阅读(202) 评论(0) 推荐(0)