[编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ struct years { ; int year; i…… 题解列表 2022年09月19日 0 点赞 0 评论 420 浏览 评分:8.7
数组插入处理--代码简洁 摘要:解题思路:第一次循环遍历数组存储9个数字,第二次循环遍历数组插入num,比较num与数组里的数,若num比数组里的数要小,则置换位置,然后,输出。注意事项:置换位置时的代码: temp = array…… 题解列表 2022年09月19日 0 点赞 0 评论 369 浏览 评分:0.0
哥德巴赫猜想 c语言 有解释 摘要:解题思路:将x内的素数存在数组中,通过遍历组合数字寻找符合条件的组合注意事项:若两素数符合条件且不同,则需要将这部分的数量除以二,7+3和3+7是一种组合参考代码:#include<stdio.h> …… 题解列表 2022年09月19日 0 点赞 0 评论 562 浏览 评分:6.0
弟弟的作业 (Java代码)——附带详细解析 摘要:解题思路:熟悉几个新的字符串方法的调用注意事项: * indexOf() 方法有以下四种形式: * public int indexOf(int ch): 返回指定字符在字符串中第一次出现处的索引,如…… 题解列表 2022年09月19日 0 点赞 0 评论 1053 浏览 评分:8.7
单独打印第一行后,循环打印后面的行数(c语言) 摘要:解题思路:假设用left-x表示左边需要打印x的位置,right-x表示右边需要打印x的位置则每行打印“x”的规律:随着打印行数的增加,left-x向右移动(即left--),right-x向左移动(…… 题解列表 2022年09月18日 0 点赞 0 评论 501 浏览 评分:9.9
1674: 数据结构-有序线性表的有序合并 摘要: #include//万能头 using namespace std; inline int read(){//快读 int x=0,f=1; c…… 题解列表 2022年09月18日 0 点赞 0 评论 723 浏览 评分:9.9
1673: 数据结构-集合union 摘要: #include//万能头 using namespace std; inline int read(){//普普通通的快读 int x=0,f=1; …… 题解列表 2022年09月18日 0 点赞 0 评论 1037 浏览 评分:9.9
兰顿蚂蚁(C语言解答) 摘要:解题思路:本题只需按照题目所给要求一步一步完成即可,比较简单。注意事项:注意行列变换规律。参考代码:#include<stdio.h>int main(){ int n,m,x,y,k,z; /…… 题解列表 2022年09月18日 0 点赞 0 评论 588 浏览 评分:9.9
数组的正输入逆输出(数组的遍历) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i; for(i=0;i<10;i++) { scanf("…… 题解列表 2022年09月18日 0 点赞 0 评论 301 浏览 评分:2.0
辗转相除法与倍数法;用函数法; 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void gcd(int a,int b);void lcm(int a,int b);void swap(int a,int b);i…… 题解列表 2022年09月18日 0 点赞 0 评论 329 浏览 评分:0.0