摘要:
B. Lucky Mask https://codeforces.com/problemset/problem/146/B 数据很小,暴力即可 #include <bits/stdc++.h> using namespace std; int a, b; string k; bool check(i 阅读全文
摘要:
图着色问题 (25分) 这题需要注意的点是,题目中说无向图的颜色书为k个,那么这个图的颜色多了少了都是不对的。 #include <bits/stdc++.h> using namespace std; const int N = 550; int n, m, k, t, v[N], e[N][N] 阅读全文
摘要:
7-11 集合相似度 (25分) #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> PII; const int N = 1100; int n, m; set<int 阅读全文
摘要:
玩转二叉树 下附代码: #include <bits/stdc++.h> using namespace std; struct node{ int data; node *left_child, *right_child; }; int a[110], b[110], k = 1; bool vi 阅读全文
摘要:
https://codeforces.com/problemset/problem/743/A 题意:给一个01字符串,指定两个位置,如果这两个位置的字符相等,则输出0,不相等则输出1 #include <bits/stdc++.h> using namespace std; const int N 阅读全文
摘要:
恢复内容开始 小米入围赛J题 https://ac.nowcoder.com/acm/contest/7501/J 思路:二维差分 #include <bits/stdc++.h> using namespace std; int a[1100][1100], b[1100][1100]; int 阅读全文