- 博客(6)
- 收藏
- 关注
原创 Atcoder Grand Contest 030 简要题解
Poisonous Cookies答案是 b+min(c,a+b+1)b+\min(c,a+b+1)b+min(c,a+b+1) 。#include <bits/stdc++.h>using namespace std;int main() {#ifdef wxh010910 freopen("input.txt", "r", stdin);#endif in...
2018-12-30 17:56:32 717
原创 CodeForces Gym 102028 简要题解
Xu Xiake in Henan Province模拟。#include <bits/stdc++.h>using namespace std;int main() {#ifdef wxh010910 freopen("input.txt", "r", stdin);#endif int tt; scanf("%d", &tt); while ...
2018-12-19 16:46:18 2811
原创 Atcoder Grand Contest 029 简要题解
Irreversible operation求逆序对。#include <bits/stdc++.h>using namespace std;int main() {#ifdef wxh010910 freopen("input.txt", "r", stdin);#endif string s; cin >> s; long long an...
2018-12-16 15:18:06 1009
原创 CodeForces Gym 102012 简要题解
Rikka with Minimum Spanning Trees因为数据随机,所以MST只有 111 种。注意特判不连通的情况。#include <bits/stdc++.h>using namespace std;typedef unsigned long long ull;const int N = 123456;const int md = 1e9 + 7;...
2018-12-11 10:13:45 6558
原创 CodeForces 1089 简要题解
Alice the Fan预处理 f(wina,winb,scorea,scoreb)f(win_a, win_b, score_a, score_b)f(wina,winb,scorea,scoreb) 表示这个状态能不能到达然后倒着输出方案就行了。#include &lt;bits/stdc++.h&gt;using namespace std;const int N = ...
2018-12-07 17:24:44 1297
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人