摘要: A - 123233 模拟即可。 点击查看代码 void solve() { int cnt[10]{}; int n; std::cin >> n; while (n) { ++ cnt[n % 10]; n /= 10; } for (int i = 1; i <= 3; ++ i) { if 阅读全文
posted @ 2025-01-20 22:02 maburb 阅读(24) 评论(0) 推荐(0)
摘要: A. Fibonacciness 题意:给你\(a_1,a_2,a_4,a_5\),你可以让\(a_3\)等于任何数,求最大有多少个\(i\)满足\(1 <= i <= 3, a_i + a_{i+1} = a_{i+2}\)。 枚举\(a_3\)分别等于\(a_1 + a_2,a_4 - a_2, 阅读全文
posted @ 2025-01-20 01:09 maburb 阅读(797) 评论(0) 推荐(3)