摘要: 特判$X \geq 10^9$的情况 剩下情况暴力枚举 #include <bits/stdc++.h> #define LL long long using namespace std; LL n; int main() { scanf("%lld", &n); if (n >= 1e10) { 阅读全文
posted @ 2022-02-24 22:30 Angels_of_Death 阅读(32) 评论(0) 推荐(0)
摘要: \[ 1 \ 2 \ 2 \ 5 \\ \ \ 1 \ 2 \ 2 \\ \ \ \ \ 1 \ 2 \\ \ \ \ \ \ \ 1 \\ \] 观察发现每一位只需要维护后缀和 #include <bits/stdc++.h> #define LL long long using namespac 阅读全文
posted @ 2022-02-24 22:28 Angels_of_Death 阅读(48) 评论(0) 推荐(0)
摘要: A #include <bits/stdc++.h> using namespace std; char s[10]; void solve() { scanf("%s", s + 1); map<char, int> Map; bool flag = 1; for (int i = 1; i <= 阅读全文
posted @ 2022-02-24 13:01 Angels_of_Death 阅读(25) 评论(0) 推荐(0)