continue,break 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char A[100001]; scanf(…… 题解列表 2023年04月09日 0 点赞 0 评论 502 浏览 评分:0.0
最简单的解法 摘要:解题思路:一般做题总是会想着先换完一轮之后再换第二轮,其实可以换种思路,每次只换一瓶,喝完再换注意事项:最后剩俩瓶子时也可以换一瓶参考代码:#include<iostream>using namesp…… 题解列表 2023年04月09日 0 点赞 0 评论 485 浏览 评分:0.0
利用双for筛选特定的值,并利用满足条件计算出现次数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int a[10000],b[10001]={0}; int max=0; int n; sc…… 题解列表 2023年04月09日 0 点赞 0 评论 530 浏览 评分:0.0
一个笨方法 摘要:一个笨方法cpp ```cpp #include #include using namespace std; int main() { int n,x3[20][20],num[20]; …… 题解列表 2023年04月09日 0 点赞 0 评论 482 浏览 评分:0.0
数字的处理与判断c语言易懂版 摘要:解题思路:用数学方法和c语言整数除法会略掉小数的特点注意事项:不能只想着输入五位数,要想如果只有三位,四位的情况(说给自己听的嘻嘻)参考代码:#include<stdio.h>#include<mat…… 题解列表 2023年04月10日 0 点赞 0 评论 503 浏览 评分:0.0
题目 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in…… 题解列表 2023年04月10日 0 点赞 0 评论 449 浏览 评分:0.0
2797: 最高的分数--用自定义函数解决(C++) 摘要:解题思路:定义一个数组来存储学生的分数。从键盘输入学生的分数,并将其存储在数组中。定义一个自定义函数,用于计算数组中的最大值。调用自定义函数来计算数组中的最大值,并将其输出。注意事项:该代码假设输入的…… 题解列表 2023年04月10日 0 点赞 0 评论 603 浏览 评分:0.0
2798: 整数序列的元素最大跨度值(求最大值和最小值) 摘要:解题思路:使用自定义函数,求出最大值和最小值,然后最大值减去最小值即为解参考代码:#include <iostream>int max(int arr[],int n);int min(int arr…… 题解列表 2023年04月10日 0 点赞 0 评论 461 浏览 评分:0.0
2810: 鸡尾酒疗法 顺着思路走吧,先不管其他的了 摘要:#include <iostream> using namespace std; int main(){ int n; cin >>n; //第一行为整数n( 1 < n <= 2…… 题解列表 2023年04月11日 0 点赞 0 评论 524 浏览 评分:0.0
[编程基础]输入输出练习之浮点数专题-题解 摘要:解题思路:按照题目所给的提示参考代码:public class Main { public static void main(String[] args) { Scanner sc…… 题解列表 2023年04月11日 1 点赞 0 评论 584 浏览 评分:0.0