![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
Ambrumf
这个作者很懒,什么都没留下…
展开
-
Atc ABC234 A-E
A-D水E:暴力打表1-1e17#include <bits/stdc++.h>using namespace std;typedef long long ll;ll mi[20];ll dfs(ll dep,ll d,ll now){ if (now > 9 || now<0)return -1; if (dep == 0)return now; ll res = dfs(dep - 1, d, now + d); if (res ==原创 2022-01-08 21:09:04 · 256 阅读 · 0 评论 -
2022.01.04 水题
CF1617 A. Forbidden Subsequence代码#include void solve(){string t,s;cin >> t >> s;sort(t.begin(), t.end());if (t.size() < s.size())cout << t << endl;else{if (s == “abc”){int cnt[26] = {};for (auto x : t){cnt[x - ‘a’]原创 2022-01-04 19:12:40 · 213 阅读 · 0 评论