蓝桥杯算法提高VIP-理财计划 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<math.h>using namespace std;int main(){ …… 题解列表 2022年01月18日 0 点赞 0 评论 594 浏览 评分:0.0
汽水瓶问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=0;i<10;i++) { int n,s,r=0,w=0; scanf("…… 题解列表 2022年01月18日 0 点赞 0 评论 570 浏览 评分:9.9
用指针保存,不需要数组 摘要:#include<stdio.h> #include<string.h> int main(){ int state = 0; int i = 0; …… 题解列表 2022年01月17日 0 点赞 0 评论 424 浏览 评分:0.0
这个数据给的奇葩,不能再一个循环中同时找最大最小值 摘要:注意事项: 最大值的下标不能提前设置为arr[0],要在找最大值是再定义.#include<stdio.h> #include<string.h> int main(){ …… 题解列表 2022年01月17日 0 点赞 0 评论 759 浏览 评分:0.0
针对多个字符串比较,而不仅仅是三个 摘要:#include<stdio.h> #include<string.h> int main(){ char arr[50][50] = { '\0' }; …… 题解列表 2022年01月17日 0 点赞 0 评论 558 浏览 评分:0.0
排列-java(潮汕人做法) 解题思路:1.老爷保号!2.解题的关键在于如何得到每个四位数并存放,题目中已经有限制:四位数字只能产生24个四位数,所以定义一个长度为24的数组num来存放四位数,再定义一个长度为4的数组s来存放四个数字,利用四个for循环嵌套得到每个四位数, 题解列表 2022年01月17日 0 点赞 0 评论 719 浏览 评分:0.0
优秀的拆分,方法都会,注意细节即可,考察递归思想 摘要:解题思路: 一般来说,一个正整数可以拆分成若干个正整数的和。例如,1 = 1,10 = 1 + 2 + 3 + 4 等。 对于正整数 n 的一种特定拆分,我们称它为“优秀的”,当且仅当…… 题解列表 2022年01月17日 1 点赞 3 评论 957 浏览 评分:10.0
c++打印图案代码 摘要:解题思路:格式化输出就好了。注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){printf(" *\n");print…… 题解列表 2022年01月17日 0 点赞 35 评论 1528 浏览 评分:9.9
最小绝对值C语言 摘要:#include<stdio.h>#include<string.h>#include<math.h>int main(){int a[10];for(int i=0;i<10;i++){scanf(…… 题解列表 2022年01月17日 0 点赞 0 评论 653 浏览 评分:0.0
迭代法求平方根C语言 摘要:#include<stdio.h>#include<math.h>int main(){long int n;int i=0;scanf("%ld",&n);double a[1000];a[0]=(…… 题解列表 2022年01月17日 0 点赞 0 评论 546 浏览 评分:0.0