编写题解 1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;void a(string s){ int sum1=0,sum2=0,sum3=0,…… 题解列表 2024年07月23日 0 点赞 0 评论 288 浏览 评分:0.0
编写题解 2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int a(int x,int y,int z){ if(x>=y&&x>=z) …… 题解列表 2024年07月23日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]求和训练 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ int a,b,c; double sum1=0,sum2=0,sum3…… 题解列表 2024年07月23日 0 点赞 0 评论 149 浏览 评分:0.0
母牛的故事(数组做法,个人觉得用数组会更加形象点,比用函数会好) 摘要:#include<stdio.h>int main(){ int n; while(~scanf("%d",&n)){ if(n==0)break; int a[n]; …… 题解列表 2024年07月23日 0 点赞 0 评论 193 浏览 评分:9.9
自定义函数求解水仙花数(C语言) 摘要:解题思路:水仙花数是3位整数,所以判断区间是包含100~999之间注意事项:水仙花数是各个位数的三次方之和等于它本身参考代码:#include <stdio.h> #include <math.h>…… 题解列表 2024年07月23日 0 点赞 0 评论 168 浏览 评分:0.0
字符统计两种方式(C语言) 摘要:方法区别:第一种:输出在自定义函数中第二种:输出在主函数中注意事项:使用scanf函数输入时,不能用 "%s" ,因为输入空格后输出只会显示空格之前的内容,所以要用 "%[^\n]" ,表示除了回车键…… 题解列表 2024年07月23日 0 点赞 0 评论 365 浏览 评分:0.0
编写题解 1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2024年07月23日 0 点赞 0 评论 1075 浏览 评分:9.9
素数筛选法(埃拉托斯特尼方法)的代码实现 摘要:首先,我们应当先复习一下原始的筛选法原理,先圈出2,并且划掉列表中2的倍数(即其他偶数),然后回到开始,圈出第一个没有被画掉的数,画掉剩下数表中他的所有倍数。重复这一过程足够多次数,剩下的没有被画掉的…… 题解列表 2024年07月23日 0 点赞 0 评论 264 浏览 评分:9.9
编写题解 2776: A*B问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年07月23日 0 点赞 0 评论 190 浏览 评分:9.9
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年07月23日 1 点赞 0 评论 573 浏览 评分:9.9