摘要:
状态不怎么好 场上就写出3道 还磨磨蹭蹭推错结论qwq 警钟长鸣 A. Li Hua and Maze 一开始以为要切割 发现就把其中一个包起来就行了 计算包某个块需要的最小块数 #include<bits/stdc++.h> #define close std::ios::sync_with_st 阅读全文
摘要:
vp的 感觉整场挺智慧 A - Alternately 找有没有连续的男女 #include<bits/stdc++.h> #define close std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0) using namespace st 阅读全文
摘要:
终于场上写出4道,听说E是树链剖分,学的不够深,学完再补 感动感动 A. We Need the Zero 题意:求一个数 所有数异或上这个数 使得所有数是异或和为0 分奇偶考虑,奇数个的情况下,异或这么多次,相当于只异或了1次x,那么先求出原数组的异或和,再异或一遍就是0了,x就是原数组的异或和、 阅读全文
摘要:
A 班委竞选 比手速直接写掉了( #include<bits/stdc++.h> #define close std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0) using namespace std; typedef long long 阅读全文
摘要:
E是补的 考试的时候写的垃圾dfs 有地方错了 没过 A 小写转换大写 #include<bits/stdc++.h> #define close std::ios::sync_with_stdio(false),cin.tie(0),cout.tie(0) using namespace std; 阅读全文