编写题解 2950: 素数回文数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main() { int a, i, j, sum = 0, b[1…… 题解列表 2025年03月21日 3 点赞 0 评论 203 浏览 评分:10.0
恺撒密码-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ stri…… 题解列表 2025年03月21日 1 点赞 0 评论 142 浏览 评分:10.0
使用随机轴点避免最坏情况 摘要:#include <iostream>#include <cstdlib> // 用于随机数生成using namespace std;int arr[100000…… 题解列表 2025年03月23日 1 点赞 0 评论 164 浏览 评分:10.0
高精度板子题,重点为四舍五入 摘要://这道题目着重考察了高精度存储数字与高精度乘法,重点在于如何对小数进行四舍五入的计算和只输出整数部分include using namespace std;int n;strin…… 题解列表 2025年03月23日 1 点赞 0 评论 1370 浏览 评分:10.0
十四届省赛-平均 摘要:解题思路:注意事项:参考代码:import sysfrom collections import defaultdictdef main(): # 读取输入 &n…… 题解列表 2025年03月23日 1 点赞 0 评论 321 浏览 评分:10.0
输入输出练习之浮点数专题,基于C++语法 摘要:**解题思路:** 看过其他人的题解,但语法大多都是基于 `C` 语言的,虽然符合题目要求,但这就不是 `C++` 了,于是我打算写一个基于 `C++` 语法的题解。值得一提…… 题解列表 2025年03月23日 1 点赞 0 评论 263 浏览 评分:10.0
蓝桥杯2024年第十五届省赛真题-封闭图形个数 摘要:#include #include int ff(int a){ int tem=0; int sum=0; int flag=a; while(a>0) { …… 题解列表 2025年03月25日 3 点赞 0 评论 401 浏览 评分:10.0
数字统计-数位DP 摘要:解题思路:数位DP注意事项:参考代码:#include<iostream>#include<cmath>using&nb…… 题解列表 2025年03月26日 1 点赞 0 评论 139 浏览 评分:10.0
蓝桥杯算法提高- c++_ch03_02题解,无需数组 摘要:# 解题思路:**学习是注重思考的过程,只要你能理解题干给出的公式,总结其中的规律,那么题目本身就不攻自破。**原题给出的公式是这样的: `C(n,k)=(((((((n/1)(n-1))/…… 题解列表 2025年03月26日 1 点赞 0 评论 138 浏览 评分:10.0
欧亚李鑫超级无敌暴力解法 摘要:解题思路:如果只有1枚硬币,不需要称量,直接返回0。如果有2枚或3枚硬币,只需要称量1次即可找出假币。递归关系:对于 n 枚硬币,每次称量可以将硬币分成三组,每组大约有 3n 枚硬币。如果 n 不能被…… 题解列表 2025年03月29日 3 点赞 0 评论 171 浏览 评分:10.0