Loading

摘要: B. Jamie and Binary Sequence (changed after round) y最小,字典序最大 先按二进制分解,最大的为2x。如果全都拆成2x-1,拆完之后总个数还比k小,就拆,不然就拆最小的 #include <bits/stdc++.h> using namespace 阅读全文
posted @ 2022-11-11 00:30 ShG1211 阅读(36) 评论(0) 推荐(0)
摘要: 2022 ICPC Asia Taiwan Online Programming Contest H. Heximal 不会高精度,拿python写的,但是python3.8会TLE,python2不会,就是有点卡 高精度+快速幂 def fp(x, y): ret = 1 while y: if 阅读全文
posted @ 2022-11-10 11:01 ShG1211 阅读(97) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2022-11-06 22:10 ShG1211 阅读(27) 评论(0) 推荐(0)
摘要: 2021 Summer Petrozavodsk Camp, Day 3: IQ test (XXII Open Cup, Grand Prix of IMO) E. Eulerian? 参考题解 先问出总边数,然后随机一个点集 (A),问这个点集的边数,以及剩下点组成集合 (B) 的边数,总边数减 阅读全文
posted @ 2022-11-02 20:30 ShG1211 阅读(71) 评论(0) 推荐(0)
摘要: 2019 ICPC Universidad Nacional de Colombia Programming Contest C. Common Subsequence DP+思维 #include <bits/stdc++.h> using namespace std; #define IOS i 阅读全文
posted @ 2022-10-31 18:58 ShG1211 阅读(23) 评论(0) 推荐(0)
摘要: The 2021 CCPC Guangzhou Onsite C. Necklace 二分 #include <bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false);cin.tie(nullptr);c 阅读全文
posted @ 2022-10-31 18:55 ShG1211 阅读(38) 评论(0) 推荐(0)
摘要: 2017-2018 ICPC Central Quarter Final of Northeastern European Regional Collegiate Programming Contest D. 38 parrots 线段树 #include <bits/stdc++.h> using 阅读全文
posted @ 2022-10-31 18:40 ShG1211 阅读(52) 评论(0) 推荐(0)
摘要: 软件 Chrome Clash for Windows Clion Chrome插件 AdBlock crxMouse Infinity(Pro) Tampermonkey 网站 Jiumo Search鸠摩搜索 Bigjpg-AI STC-SPADES Greasyfork 脚本 AC-baidu 阅读全文
posted @ 2022-10-01 11:09 ShG1211 阅读(619) 评论(0) 推荐(0)