![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
新生赛
慌的一匹
这个作者很懒,什么都没留下…
展开
-
凉脾的比赛
B.这个题目我真是痛苦啊,当初死活找不出错误,从写一遍AC,最重要的八,因为这个相加是以n为循环,所以应该套(a%b+b)%b#include <iostream>#include <cstring>#include <string>#include <cstdio>#include <algorithm>using n...原创 2020-01-29 12:43:53 · 68 阅读 · 0 评论 -
凉肝的比赛
C.从x的因子中寻找a,然后判断a,b的最小公倍数是不是nLCM(a, b) == (a * b)/gcd(a,b)#include <iostream>#include <cmath>using namespace std;typedef long long ll;ll gcd(ll a, ll b){ return b == 0 ? a : gc...原创 2020-01-17 21:35:09 · 88 阅读 · 0 评论 -
凉心的比赛(一)
B.比赛当时真的想了很长时间,看到大佬的解法,感觉真的好厉害啊简单来说,你要比较两个线段包不包含,你先根据线段的最后排序,从小到大,那么如果出现一个线段的开始比之前最大的开始要小,那么这个线段就包含之前哪个线段#include <iostream>#include <algorithm>using namespace std;typedef long lo...原创 2020-01-15 17:39:01 · 85 阅读 · 0 评论 -
新生赛002题解-“我不做人辣”
G.很简单,理解题目意思基本秒出,大意为在原字符串01的任何位置插入01形成新的字符串,给你n个字符串,判断他们符不符合规#include <iostream>#include <string>using namespace std;int main(){ string s; int n; cin >> n; while(n--){ i...原创 2020-01-06 21:25:50 · 97 阅读 · 0 评论