

























榜单: https://www.kdocs.cn/l/chfV7Le7t2Df #include <bits/stdc++.h> using namespace std; #define int long long const int inf = 1e18; const int md = 0; signed main() { ios::sync_with_stdio(0); cin.tie(0); int tt; cin >> tt; cin.get(); while (tt--) { int x; cin >> x; vector<int> a; int sum = 0; while (x) { int r = x % 10; sum += r; a.push_back(r); x /= 10; } while (a.size() >= 2) { int n = a.size(); vector<int> b(n - 1);...
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。