
CF
燑
这个作者很懒,什么都没留下…
展开
-
Codeforces-Round-630-Div-2
个人博客:https://voids5.cn/2020/04/01/Codeforces-Round-630-Div-2/ 题目链接:https://codeforces.com/contest/1332 A. Exercising Walk 题意:在题目所给次数反复左右上下跳过程中不超过题目所给范围 Code: #include<bits/stdc++.h> using namesp...原创 2020-04-01 02:14:22 · 210 阅读 · 0 评论 -
Educational Codeforces Round 84 (Rated for Div. 2)
A. Sum of Odd Integers 题意:两个数n、k,判断n是否能被产分成k个不同的素数 解题思路:首先n,k奇偶性要相同,然后根据求和公式k个奇数相加最小数为k2,故n>=k2 Code: #include<bits/stdc++.h> using namespace std; typedef long long ll; ll t,n,k; //注意范围 int...原创 2020-03-24 17:11:25 · 202 阅读 · 0 评论 -
Codeforces Global Round 7
如有帮助请移步voids5.cn,增加一些访问量,里面也有我未在csdn发布的博客 #A. Bad Ugly Numbers 题目大意:给你一个数字n你需要找到一个满足以下条件的数字s: 1.s大于0 2.s有n位数字 3.s任一位上不包括0 4.s不能被任意位上的数整除 解题思路:可以发现s用两个质数组成可以满足上述条件 Code: #include<bits/stdc++.h> ...原创 2020-03-20 21:25:42 · 184 阅读 · 0 评论