08 2020 档案
摘要:T1 排序(sort) 答案就是有逆序对的元素个数 因为可以把有逆序对的元素从大到小操作一遍就行 \(O(nlogn)\) 好像还有 \(O(n)\) 做法 orz #include <bits/stdc++.h> using namespace std; #define rep(i, a, b)
阅读全文
摘要:人均200+的水题大赛 自然AK T1 SJR 的西洋棋 送分,因为答案<=6,果断暴搜,复杂度 \(C(25,6)\) 有人说会爆栈但事实并不会 #include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int
阅读全文
摘要:最近题有点多 这边就只能咕掉了 放一下STD T1 吴翼粉刷匠 #include <cstdio> #include <set> using namespace std; typedef long long llint; const int MAXN = 1000010; const int MOD
阅读全文
摘要:8月的第一天 这套题没打完就走了 只写了T1正解 其他两题放一下STD T1 八数码 #include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = a; i <= b; i++) #define per
阅读全文