结构体之成绩记录,绝对易懂,搞懂吸收空行知识点 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;//结构体之成绩记录//这道题刚开始的时候,我直接写的没有吸收空行,导致后面有数组越界的情况出现,然后我把数组的长度增大…… 题解列表 2022年01月18日 0 点赞 0 评论 482 浏览 评分:9.9
蓝桥杯算法提高VIP-理财计划 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<math.h>using namespace std;int main(){ …… 题解列表 2022年01月18日 0 点赞 0 评论 345 浏览 评分: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 评论 328 浏览 评分:9.9
用指针保存,不需要数组 摘要:#include<stdio.h> #include<string.h> int main(){ int state = 0; int i = 0; …… 题解列表 2022年01月17日 0 点赞 0 评论 174 浏览 评分:0.0
这个数据给的奇葩,不能再一个循环中同时找最大最小值 摘要:注意事项: 最大值的下标不能提前设置为arr[0],要在找最大值是再定义.#include<stdio.h> #include<string.h> int main(){ …… 题解列表 2022年01月17日 0 点赞 0 评论 228 浏览 评分:0.0
针对多个字符串比较,而不仅仅是三个 摘要:#include<stdio.h> #include<string.h> int main(){ char arr[50][50] = { '\0' }; …… 题解列表 2022年01月17日 0 点赞 0 评论 249 浏览 评分:0.0
排列-java(潮汕人做法) 摘要:解题思路:1.老爷保号!2.解题的关键在于如何得到每个四位数并存放,题目中已经有限制:四位数字只能产生24个四位数,所以定义一个长度为24的数组num来存放四位数,再定义一个长度为4的数组s来存放四个…… 题解列表 2022年01月17日 0 点赞 0 评论 355 浏览 评分:0.0
优秀的拆分,方法都会,注意细节即可,考察递归思想 摘要:解题思路: 一般来说,一个正整数可以拆分成若干个正整数的和。例如,1 = 1,10 = 1 + 2 + 3 + 4 等。 对于正整数 n 的一种特定拆分,我们称它为“优秀的”,当且仅当…… 题解列表 2022年01月17日 1 点赞 3 评论 662 浏览 评分:10.0
c++打印图案代码 摘要:解题思路:格式化输出就好了。注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){printf(" *\n");print…… 题解列表 2022年01月17日 0 点赞 35 评论 950 浏览 评分: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 评论 432 浏览 评分:0.0