1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:1.使用函数def LEAP_YEAR(y): if y % 400 == 0 or (y % 4 == 0 and y % 100 != 0): p…… 题解列表 2022年12月08日 0 点赞 0 评论 450 浏览 评分:0.0
1070: 二级C语言-成绩归类 摘要:解题思路: 使用逗号表达式作为退出条件的判断注意事项:参考代码:#include<stdio.h>#define N 1010int arr[N];int main(){ int i = 0; int…… 题解列表 2022年12月09日 0 点赞 0 评论 333 浏览 评分:0.0
realloc动态分配内存 摘要:解题思路:注意事项:参考代码:#include<stdio.h>/*72 101 108 108 111 44 32 119 111 114 108 100  题解列表 2022年12月09日 0 点赞 0 评论 285 浏览 评分:0.0
定义动态二维数组 摘要:解题思路:遍历找到最小值注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n;int min,a,b; while(…… 题解列表 2022年12月10日 0 点赞 0 评论 260 浏览 评分:0.0
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 评论 298 浏览 评分: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 评论 258 浏览 评分: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 评论 254 浏览 评分: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 评论 359 浏览 评分:0.0
题解c语言代码 摘要:解题思路:用字符的特性来解题,每个字符+4即得到想要的字母。注意事项:这样的代码理解起来非常简单,而且可以加深gets()与puts()的记忆。PS:之前见过大佬这样写的,但是后来找不到了,如果重复纯…… 题解列表 2022年12月11日 0 点赞 0 评论 211 浏览 评分:0.0
循环嵌套实现DNA(C++) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int N, a, b, n = 1; cin >> N;…… 题解列表 2022年12月11日 0 点赞 0 评论 341 浏览 评分:0.0