1072: 汽水瓶(简单易懂) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,sum; while (cin >> n) …… 题解列表 2024年12月07日 2 点赞 0 评论 338 浏览 评分:10.0
C语言训练-排序问题(2)C++使用sort排序 摘要:解题思路:自定义cmp,使sort()为降序函数注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>bool cmp(…… 题解列表 2024年12月07日 1 点赞 0 评论 277 浏览 评分:0.0
1725: 统计字符 超简单做法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2 …… 题解列表 2024年12月07日 0 点赞 0 评论 167 浏览 评分:0.0
一个简单的自定义函数 来处理 素数 摘要:解题思路:试除法判断scanf输入的数 是or不是素数注意事项:循环的优化参考代码:#include <stdio.h>#include <math.h>int is_Prime(int a){ in…… 题解列表 2024年12月07日 1 点赞 0 评论 919 浏览 评分:10.0
检验每个数位上的值并计数:临时变量、while属性,进位位置区分 摘要:解题思路:1.检验每个数位上的值并计数:while;%10求模;count++;/10更新。2.临时变量:转换for与while循环的区分属性:while会从0-n全部循环一遍,只用1次,内部/10迭…… 题解列表 2024年12月07日 0 点赞 0 评论 159 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){ int n,pay=0; …… 题解列表 2024年12月07日 1 点赞 0 评论 260 浏览 评分:0.0
1723: 求最大值 超级简单做法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个长度为10的整型数组a …… 题解列表 2024年12月07日 0 点赞 0 评论 166 浏览 评分:0.0
1033: [编程入门]自定义函数之字符提取 摘要: #include int main() { char a[1000]; char s[1000]; gets(a); int…… 题解列表 2024年12月07日 0 点赞 0 评论 694 浏览 评分:10.0
蓝桥杯2024年第十五届省赛真题-好数 摘要: #include int main() { int n; int d = 0;; int u = 1; int c = 0;…… 题解列表 2024年12月07日 1 点赞 0 评论 648 浏览 评分:10.0
编写题解 1073: 弟弟的作业 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h> //atio函数,将字符串转换为数字.#include<string.h> …… 题解列表 2024年12月07日 2 点赞 0 评论 546 浏览 评分:10.0