自定义函数之字符串拷贝的 简单解法 摘要:解题思路:本题的关键是找输出函数从那开始,数组的下标从0开始,所以从m开始实际在下标上是m-1,为了检验开头结尾,中间是否满足,带入试验,知满足。同时,不是在下标为n处停止,n是字符长度,第n个在下标…… 题解列表 2022年06月18日 0 点赞 0 评论 325 浏览 评分:0.0
关于求解最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,de,ge; cin>>a>>b; de=a; ge=b; while(d…… 题解列表 2022年06月18日 0 点赞 0 评论 394 浏览 评分:0.0
字符排序-题解(各语言代码) 摘要:**python** ```python for _ in range(int(input())):print(''.join(sorted(input()))) ``` **java** …… 题解列表 2022年06月18日 0 点赞 0 评论 501 浏览 评分:0.0
自定义函数之整数处理 摘要:解题思路:首先声明了四个函数,依次分别为:赋值函数,最小数最与第一位交换的函数,最大数与最后一位交换的函数,以及打印结果的函数。赋值函数:首先在主函数中定义一个十位 的数组,再进入赋值函数中,在函数中…… 题解列表 2022年06月19日 0 点赞 0 评论 452 浏览 评分:0.0
去掉空格C语言 摘要:解题思路:首先赋值,利用循环函数,依次判断,只要遇到空格,就暂时调出循环,否则就打印该值注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){…… 题解列表 2022年06月19日 0 点赞 0 评论 544 浏览 评分:0.0
1025: [编程入门]数组插入处理 C++版 摘要:解题思路:冒泡排序注意事项:参考代码:#include<iostream>using namespace std;long long a[15],z;int main(){ for(int i=1;i…… 题解列表 2022年06月19日 0 点赞 0 评论 361 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char st[100],st2[100]; int n,m…… 题解列表 2022年06月20日 0 点赞 0 评论 336 浏览 评分:0.0
自由下落函数法 摘要:解题思路:注意事项:参考代码:# include<stdio.h># include<math.h>void ReBack(int M,int N);int main(){ int M,N; …… 题解列表 2022年06月20日 0 点赞 0 评论 324 浏览 评分:0.0
自由下落 暴力拆解 摘要:#include<stdio.h>#include<math.h>int main(){ int i; float c,sum=0,sum2; double m,n; scanf("%…… 题解列表 2022年06月20日 0 点赞 0 评论 337 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct tim { int y; int m; int d; }; int ispr(int…… 题解列表 2022年06月20日 0 点赞 0 评论 304 浏览 评分:0.0