最大公约数与最小公倍数(C语言) 摘要:解题思路: 利用定义法求解。注意事项: 不要使用中文输入法编写代码。参考代码:#include<stdio.h>int main(){ int m,n,i,j; int max = 0…… 题解列表 2023年08月01日 0 点赞 0 评论 512 浏览 评分:9.9
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>void sort(int a[100],int len){ int…… 题解列表 2023年08月01日 0 点赞 0 评论 476 浏览 评分:0.0
自定义函数之整数处理(新手小白也能学会的编程) 解题思路:题目要求使用三个函数,1、输入可以直接用main函数。2、将其中最小的数与第一个数对换,把最大的数与最后一个数对换用自己的函数intF(inta[10])。3、用PR函数输出要求的结果。因输入数据和输出结果较简单,直接将对换的思路。 题解列表 2023年07月31日 0 点赞 0 评论 746 浏览 评分:9.9
1466: 蓝桥杯基础练习VIP-字符串对比(C++简单解) 摘要: ```cpp #include #include #include using namespace std; int checkRelation(const string& s…… 题解列表 2023年07月31日 0 点赞 0 评论 546 浏览 评分:9.9
牛吃牧草(六年级天天写) 摘要:解题思路:小学题目 你不能不会吧注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; c…… 题解列表 2023年07月31日 2 点赞 0 评论 1717 浏览 评分:4.7
电影票(无聊刷题) 摘要:解题思路:很简单 没啥好说的 写不对就自杀吧注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; …… 题解列表 2023年07月31日 0 点赞 0 评论 786 浏览 评分:9.9
1232: 查找最大元素(C++) AC代码:```cpp#include#include#includeusingnamespacestd;intmain(){stringinput;while(getline(cin,input)){//寻找最大的字母charmaxLetter='\0';for(charch:input){if(i 题解列表 2023年07月31日 0 点赞 0 评论 708 浏览 评分:9.9
梯形面积(无聊刷题) 摘要:解题思路: 没啥好说的 写不对就自杀吧注意事项: 参考代码:#include<iostream> using namespace std; const float sh=15,xia=25…… 题解列表 2023年07月31日 0 点赞 1 评论 885 浏览 评分:6.0
电报加密——解题 解题思路:此题较简单,即先输入一行字符串,然后将小写字母(a-y)加一,将z直接变为a。最后输出字符串。注意事项:改变字符串的过程应该注意先将z变为a,再将(a-y)加一,否则y也将变为a。参考代码:#includeintmain(){charstr[50];inti;gets(st 题解列表 2023年07月31日 0 点赞 0 评论 496 浏览 评分:9.9
优质题解 数组插入处理(详解)保证新手小白也能看懂 摘要:解题思路:首先是输入只含有9个元素的数组a[10],用for循环依次输入。接着输入插入的数字m,将m与数组元素比较。1、当m<=a[0]时,记录t=0;2、当m>=a[8]时,记录9;3、当a[i]<…… 题解列表 2023年07月31日 5 点赞 32 评论 8036 浏览 评分:9.3