摘要: 7-9 排座位 并查集,做的时候忘记考虑全联通了。。。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN=1e5+10; int n,r,q,x,y,z;; int a[107][107 阅读全文
posted @ 2020-10-04 23:02 Leviathan_Sei 阅读(92) 评论(0) 推荐(0)
摘要: B - Yet Another Crosses Problem CodeForces - 1194B #include<bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN=5e4+10; string a[ 阅读全文
posted @ 2020-10-04 20:38 Leviathan_Sei 阅读(99) 评论(0) 推荐(0)
摘要: A - Calandar 根据题意可知,每月30天,每周5天,也就是说每年也是5的倍数。因此,只要确定一个月的一天是周几,就可以得出所有的答案。按照和他相差的天数取余,然后就可以得到。 #include<bits/stdc++.h> using namespace std; typedef long 阅读全文
posted @ 2020-10-04 13:33 Leviathan_Sei 阅读(67) 评论(0) 推荐(0)