摘要:
Problem - G - Codeforces 树hash模板,使用的异或移位hash,为了防止被卡,弄了一个奇奇怪怪的数mask异或了下。 #include<bits/stdc++.h> #define ull unsigned long long #define fu(i, a, b) for 阅读全文
摘要:
题目链接 A 直接计算 即可 位数为k 首位数为 a 则 $ans = a + (k - 1) \times 9$ 点击查看代码 #include<bits/stdc++.h> using namespace std; const int maxn = 2e5 + 5; int a[maxn]; i 阅读全文