1027.自定义函数处理最大公约数与最小公倍数题解简洁容易 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int gcd(int m,int n){ if(m%n==0) return n; else return gcd(n,m%n);}…… 题解列表 2022年12月10日 0 点赞 0 评论 398 浏览 评分:0.0
1029题解简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int fun(int m){ int y; y=(int)sqrt(m); for(int i=2…… 题解列表 2022年12月10日 0 点赞 0 评论 372 浏览 评分:0.0
1034 题解简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int seperate(int m,int x,int y,int z,int w){ x=m/1000%10; y=m/100%1…… 题解列表 2022年12月10日 0 点赞 0 评论 344 浏览 评分:0.0
蓝桥杯算法提高VIP-剪刀石头布 c 摘要:解题思路:注意事项:参考代码:#include<stdio.h>enum play {a=-1,b,c};int main(){ enum play outcome; int p1,p2…… 题解列表 2022年12月11日 0 点赞 0 评论 434 浏览 评分:0.0
题解c语言代码 摘要:解题思路:用字符的特性来解题,每个字符+4即得到想要的字母。注意事项:这样的代码理解起来非常简单,而且可以加深gets()与puts()的记忆。PS:之前见过大佬这样写的,但是后来找不到了,如果重复纯…… 题解列表 2022年12月11日 0 点赞 0 评论 289 浏览 评分:0.0
循环嵌套实现DNA(C++) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int N, a, b, n = 1; cin >> N;…… 题解列表 2022年12月11日 0 点赞 0 评论 429 浏览 评分:0.0
输出Tom数(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;const int station = 10;int main(){ …… 题解列表 2022年12月11日 0 点赞 0 评论 394 浏览 评分:0.0
c语言函数的链式调用-实例 摘要:解题思路:注意事项:参考代码:‘#include <stdio.h> #pragma warning(disable : 4996 int gcd(int x, int y) { if…… 题解列表 2022年12月12日 0 点赞 0 评论 383 浏览 评分:0.0
成绩排序c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h> struct student{ char name[200]; int age; …… 题解列表 2022年12月12日 0 点赞 0 评论 334 浏览 评分:0.0
二级C语言-计算素数和 摘要:解题思路: 本题主要是解决自定义的函数问题。第一:输入范围m,nscanf("%d%d",&m,&n);第二:利用for循环,从m到n依次检查是否为素数;第三自定义一个函数(关键) if(x<=…… 题解列表 2022年12月12日 0 点赞 0 评论 364 浏览 评分:0.0