11 2021 档案
摘要:A - First Grid $2\times 2$矩阵只有两种情况不满足 .# #. #. .# 特判即可 如果一个#相邻的三个格子全是.则一定不可能联通 #include<bits/stdc++.h> using namespace std; int main(){ string s1,s2;
阅读全文
摘要:比赛链接 A.星图 l[i],r[i],u[i],d[i]分别代表第$i$行或(列)从某个方向看过去的第一个黑洞所在位置 然后判断对应的黑洞是否在当前点的后面 #include <bits/stdc++.h> using namespace std; const int N = 1005; int
阅读全文
摘要:1216 一道比较简单的递推题目 f[i][j] += max( f[i-1][j] , f[i-1][j-1]) #include<bits/stdc++.h> using namespace std; const int N = 1010; int r,a[N][N] = {},maxx = 0
阅读全文
摘要:P2249 二分答案 直接套用lower_bound() #include <bits/stdc++.h> using namespace std; const int N = 1e6 + 5; int n , m , a[N]; inline int read() { register int x
阅读全文
摘要:A 没有一百毫升有A卡路里,B毫升中有多少卡路里 #include <bits/stdc++.h> using namespace std; int main() { double a , b; cin >> a >> b; cout << a * b / 100 << endl; return 0
阅读全文
摘要:A 正反各跑一遍匹配 正着满足,反着不满足,没有坐反 正着不满足,反着满足,坐反 都满足,不知道 #include <bits/stdc++.h> using namespace std; int n , m , x , y , a[20] , b[20] , c1[20] , c2[20] , o
阅读全文
摘要:A 签到 #include <bits/stdc++.h> using namespace std; int main() { int a , b; cin >> a >> b; cout << a * b << endl; return 0; } B 签到,用long long #include
阅读全文

浙公网安备 33010602011771号