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
阅读全文
摘要: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
阅读全文
摘要: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 =
阅读全文
摘要:A.当l == r时,肯定输出这个数就可以了,当存在两个或两个以上连续的数时,2肯定是最多的数,或最多的数之一。 #include<bits/stdc++.h> using namespace std; int l,r; int main() { ios::sync_with_stdio(false
阅读全文
摘要:https://vjudge.net/contest/161101#overview A.判断B是否能整除A的每一个素因子。 #include<bits/stdc++.h> using namespace std; int prime[1000005],vis[1000005] = {0}; lon
阅读全文
摘要:A.找最小的数,看每个数跟它的差是否被k整除。 #include<bits/stdc++.h> #define MOD 1000000007 using namespace std; int n,cnt[100005] = {0},ans[100005],two[100005]; int main(
阅读全文

浙公网安备 33010602011771号