这个题不考虑空格——第一个测试点不通过的原因 摘要:解题思路:之前用getchar()获得字符(\n结束),统计长度后正反各输出一次。然后第一个测试点死活不通过。红温过后使用scanf("%s",&str)即可。注意事项:呕…… 题解列表 2025年06月05日 0 点赞 0 评论 397 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要: #includeusing namespace std ;int main(){ int t = 1 ; int m,n ; cin>>m>>n ;…… 题解列表 2025年06月05日 0 点赞 0 评论 523 浏览 评分:0.0
题目 3327: 蓝桥杯2025年第十六届省赛真题-倒水 摘要:解题思路:颜色组的独立性:因为倒水操作只能在同一颜色组内进行,不同颜色组之间没有交互。因此,我们可以独立地处理每个颜色组。最小值的最大化:对于每个颜色组,我们需要决定如何分配水,使得该组的最小值尽可能…… 题解列表 2025年06月05日 2 点赞 0 评论 533 浏览 评分:0.0
高精度乘法(sf11f) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;// 用字符串存储大数,避免数…… 题解列表 2025年06月05日 0 点赞 0 评论 100 浏览 评分:0.0
统计(sf9b) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,x,cnt=0; cin>&…… 题解列表 2025年06月05日 0 点赞 0 评论 92 浏览 评分:0.0
快速幂(sf8d) 摘要:解题思路:我也看不懂注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const ll N…… 题解列表 2025年06月05日 0 点赞 0 评论 100 浏览 评分:0.0
两集合的交集(sf5c) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1000…… 题解列表 2025年06月05日 0 点赞 0 评论 115 浏览 评分:0.0
有规律的数列求和 摘要:解题思路: 分子分母分别用递归函数生成斐波那契数,然后求和注意事项:参考代码:#include<stdio.h>float data_x(int n){ if (n == 1) retur…… 题解列表 2025年06月06日 1 点赞 2 评论 237 浏览 评分:0.0
栈解决去括号问题 摘要:# 1. 前景提示:这个题目没有我想的那么简单,我甚至觉得超级考验思维。分类讨论,特例枚举,无一不展现这个题目的魅力。看了别人的题解,我很生气的,连数组大小都没有明确指出,或者你在堆区创建空间也行…… 题解列表 2025年06月07日 0 点赞 0 评论 88 浏览 评分:0.0
数组插入的简单处理 摘要:# 数组插入处理 ##includeint main(){ int arry[10]; for(int i = 0;i…… 题解列表 2025年06月08日 0 点赞 0 评论 225 浏览 评分:0.0