摘要:
右下角可以切换黑白背景。括号内的数为难度评分。 C. 343 (*220) 枚举开根后的数,再来判断回文。\(N\leq 10^{18}\),所以最多枚举 \(10^6\) 个数。 int check(int x) { tot = 0; while (x) { b[++tot] = x % 10; 阅读全文
摘要:
黑白可能不适应,右下角可调背景,黑白转换。 C 如果做过最初分块肯定是秒了(我可能一辈子都不会学),如果用线段树做过类似的题也应该知道定义 \(cover[i]\) 表示原来的 \(i\) 现在变成了 \(cover[i]\)。 #include <bits/stdc++.h> using name 阅读全文
摘要:
只写部分题目。 ## A. Rudolph and Cut the Rope ```cpp #include using namespace std; #define int long long const int N = 2e5 + 5; int t, n, a[N], b[N]; signed 阅读全文