1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码://思路 1.先求出两个数的最大公约数;//2.利用公式求最小公倍数=两个数的积/最大公约数#include <stdio.h>int main(){ int nu…… 题解列表 2024年03月11日 0 点赞 0 评论 315 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数法二 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int m,int n){ int min,num1; if(m>n){ min=n; …… 题解列表 2024年03月11日 0 点赞 0 评论 259 浏览 评分:0.0
Jayden-[解释通俗易懂,一看就会! ] 复数求和(结构体&&功能模块化) 摘要:解题思路: 题目是想求链表中复数之和,那么我们可以从链表入手,我的思路是:将第二个节点就当作是最后要求和的节点,把第二个节点之后的所有节点的数据都加在这个节点上,最后是输出headNod…… 题解列表 2024年03月12日 0 点赞 0 评论 255 浏览 评分:9.9
想回到小学上课了 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年03月12日 0 点赞 0 评论 430 浏览 评分:9.9
甲流病人初筛,结构体数组写法,有注释 摘要:```c ```c #include typedef struct information{ char name[8]; float temperature; int cough…… 题解列表 2024年03月12日 1 点赞 0 评论 492 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题--倒过来看问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=0,x=1; scanf("%d",&n); for(int i=1;i<n;i++) { x=2…… 题解列表 2024年03月12日 0 点赞 0 评论 216 浏览 评分:9.9
使用sort方法自定义cmp实现排序,直接进行大小比较 摘要:解题思路:整体思路是将要比较的字符串放入一个字符数组里面,为了便于写cmp方法进行比较,我在这里用结构体将其保存,开了1000的长度是因为一开始我开了10怎么也通过不了第二个测试点,检查算法没有问题,…… 题解列表 2024年03月12日 0 点赞 0 评论 474 浏览 评分:9.9
开数组存字符按位+4再输出 摘要:解题思路:注意事项:参考代码:#include<cstdio>#include<iostream>#include<cstring>using namespace std;int main(){ in…… 题解列表 2024年03月12日 0 点赞 0 评论 229 浏览 评分:0.0
2680: 蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路: 在这段代码中,int s = int(str1[1])-48; 的目的是将输入的字符串中的第二个字符转换为整数。这是因为输入的字符串表示的是一个数字,而不是一个…… 题解列表 2024年03月12日 1 点赞 0 评论 431 浏览 评分:10.0
1108: 守望者的逃离(双线牛逼) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m,s,t; cin>>m>>s>>t; i…… 题解列表 2024年03月12日 1 点赞 0 评论 460 浏览 评分:9.9