摘要:
B. Jamie and Binary Sequence (changed after round) y最小,字典序最大 先按二进制分解,最大的为2x。如果全都拆成2x-1,拆完之后总个数还比k小,就拆,不然就拆最小的 #include <bits/stdc++.h> using namespace 阅读全文
摘要:
2022 ICPC Asia Taiwan Online Programming Contest H. Heximal 不会高精度,拿python写的,但是python3.8会TLE,python2不会,就是有点卡 高精度+快速幂 def fp(x, y): ret = 1 while y: if 阅读全文
摘要:
A. Riverside Curio #include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr) #define re 阅读全文
摘要:
2021 Summer Petrozavodsk Camp, Day 3: IQ test (XXII Open Cup, Grand Prix of IMO) E. Eulerian? 参考题解 先问出总边数,然后随机一个点集 (A),问这个点集的边数,以及剩下点组成集合 (B) 的边数,总边数减 阅读全文
摘要:
2019 ICPC Universidad Nacional de Colombia Programming Contest C. Common Subsequence DP+思维 #include <bits/stdc++.h> using namespace std; #define IOS i 阅读全文
摘要:
2017-2018 ICPC Central Quarter Final of Northeastern European Regional Collegiate Programming Contest D. 38 parrots 线段树 #include <bits/stdc++.h> using 阅读全文