摘要:
I. Cyclic Apple Strings 找第一个 \(1\) 的位置,后面的每个连续是 \(0\) 的段,每个都可以用一次交换解决 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using 阅读全文
摘要:
当时还打过这场比赛,和 yhp cpy。当时啥也不会,只做了三题遗憾打铁,哎 现在 VP 发现当时不会的题好简单 J - Breakfast 纯签 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; us 阅读全文
摘要:
A. Nezha Naohai 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll = long long; using ull = u 阅读全文
摘要:
2181 F. Fragmented Nim tag:博弈论 谁先给对手送去一个大于 \(1\) 的堆,谁就必输 判断 \(1\) 的个数就行 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; usin 阅读全文
摘要:
A. Passing the Ball 纯模拟的,但好像是找第一个 L 的位置就行 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; using pii=pair<int,int>; using ll 阅读全文
摘要:
CF 1363C Game On Leaves tag: 博弈论,寄偶性,树上博弈 如果只有一个节点或 \(x\) 就是叶节点,则先手必胜 否则,如果有奇数条边,先手胜。否则后手胜 点击查看代码 #include<bits/stdc++.h> #define int long long using 阅读全文