简单易懂-------不妨看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[80]; while (gets(arr)) { for…… 题解列表 2021年11月28日 0 点赞 0 评论 368 浏览 评分:0.0
蓝桥杯算法提高VIP-模拟计算器(c++代码题解) 摘要:解题思路:定义二个int类型,一个char类型变量用if函数即可解决此题注意事项:无参考代码:#include<bits/stdc++.h> using namespace std; int ma…… 题解列表 2021年11月28日 0 点赞 0 评论 802 浏览 评分:9.9
用两个循环语句写不用数组,用小学奥数 摘要:解题思路:每一行先打印第一列的首数字,再按规律求解注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,k=1,l=0,m=2,a=1; …… 题解列表 2021年11月28日 0 点赞 0 评论 570 浏览 评分:9.9
暴力求解法 摘要:解题思路: 把题目分割成为三个问题,先求位数,再求每个权位上的数,然后正序带空格输出,逆序输出,暴力简单。注意事项:注意求解每个权位上的数通用公式是:每个权位上的数=该数/位数%10;参考代码:…… 题解列表 2021年11月28日 0 点赞 0 评论 566 浏览 评分:9.9
模拟计算器 摘要:解题思路:使用switch而不是if注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; …… 题解列表 2021年11月28日 0 点赞 0 评论 506 浏览 评分:2.0
剪刀石头布 摘要:解题思路:利用if进行枚举,其余情况输出0注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; …… 题解列表 2021年11月28日 0 点赞 0 评论 815 浏览 评分:4.0
直接暴力出奇迹 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=1;i<=2000;i++) //1993符合,到2000就合适了 …… 题解列表 2021年11月28日 0 点赞 0 评论 566 浏览 评分:0.0
1124:大小写问题 C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[101]; int len; gets(a); len=s…… 题解列表 2021年11月28日 0 点赞 0 评论 460 浏览 评分:0.0
c++计算圆周率代码 摘要:解题思路:利用迭代法计算圆周率注意事项:注意精度参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { dou…… 题解列表 2021年11月28日 0 点赞 0 评论 1895 浏览 评分:7.4
找规律再求和 摘要:解题思路:发现他跟斐波那契数列有关,先斐波那契数列再调用注意事项:参考代码:#include<stdio.h>int fabonacia(int n){ if(n==1||n==2) return 1…… 题解列表 2021年11月28日 0 点赞 0 评论 514 浏览 评分:5.0