自定义函数求最大公约数最小公倍数 摘要:解题思路:最大公约数利用辗转相除法,最小公倍数为两数相乘再除以最大公约数注意事项:参考代码:#include<stdio.h>int gcd(int x,int y)//最大公约数{ int m…… 题解列表 2023年09月23日 0 点赞 0 评论 359 浏览 评分:9.9
题解 2751: 超级玛丽游戏 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" ********"…… 题解列表 2023年09月23日 0 点赞 0 评论 758 浏览 评分:9.9
题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码: #include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<(4…… 题解列表 2023年09月23日 0 点赞 0 评论 489 浏览 评分:9.9
1761: 学习ASCII码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { printf("%d %c",'t',63); return 0; }…… 题解列表 2023年09月23日 3 点赞 3 评论 1786 浏览 评分:9.9
C语言循环判断解法(简单易懂有注释) 摘要:解题思路:建立bool型数组,通过一般的穷举思路不断判断当下情况,至只剩下最后一个数,取下标注意事项:函数中i作为计数器被反复使用,可以以i=0为界讨论各步骤参考代码:#include<stdio.h…… 题解列表 2023年09月23日 0 点赞 0 评论 488 浏览 评分:9.9
2858: 整理药名(C语言) 摘要: #include #include int main() { int n; scanf("%d",&n); char a[n][100]; for(int i=0…… 题解列表 2023年09月23日 0 点赞 0 评论 616 浏览 评分:9.9
1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1 #include<stdio.h> #define M 10 int main() { …… 题解列表 2023年09月24日 0 点赞 0 评论 269 浏览 评分:9.9
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include<cstdio> int a[15]; int main() { for(int i=1;i<=9;i++) scanf("%…… 题解列表 2023年09月24日 0 点赞 0 评论 290 浏览 评分:9.9
1042: [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> void fun(char a[])//向后移动一位 { for (int …… 题解列表 2023年09月24日 0 点赞 0 评论 223 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; //定义日期结构体 struct Date { int year; …… 题解列表 2023年09月24日 0 点赞 0 评论 337 浏览 评分:9.9