C语言 宏定义之闰年判断& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define LEAP_YEAR(y) if(((y%4==0)&&(y%100!=0))||(y%4…… 题解列表 2022年11月19日 0 点赞 0 评论 330 浏览 评分:0.0
C语言 实数的打印& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ void out_real_num_format(double a); double a; s…… 题解列表 2022年11月19日 0 点赞 0 评论 331 浏览 评分:0.0
很简单· 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i = 0 ,j=0; char arr [100]; gets(a…… 题解列表 2022年11月19日 0 点赞 0 评论 365 浏览 评分:0.0
c语言的一种思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<limits.h>#include<math.h>#include<stdlib.h>int main(){ i…… 题解列表 2022年11月19日 0 点赞 0 评论 369 浏览 评分:0.0
利用二维数组的思想,找出填充数据之间的规律 摘要:解题思路:注意事项:参考代码:n = int(input())n_list = [[0 for i in range(n)] for j in range(n)]n_list[0][0] = 1for…… 题解列表 2022年11月19日 0 点赞 0 评论 346 浏览 评分:0.0
C语言 宏定义之找最大数& 摘要:解题思路:注意事项:此代码在蓝桥杯在线测试运行不起来,本人VS2019运行没问题,可能是float num[Long]的问题,如果改为int num[Long蓝桥杯就能运行了参考代码:#include…… 题解列表 2022年11月19日 0 点赞 0 评论 360 浏览 评分:0.0
[Python]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:def yue(a,b): if a < b: a,b = b,a for i in range(2,b+1): if a%i =…… 题解列表 2022年11月19日 0 点赞 0 评论 380 浏览 评分:0.0
数列解析 供大家讨论 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,k; int count=0; …… 题解列表 2022年11月19日 0 点赞 0 评论 364 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:调用max与min函数找出最大与最小的数 ,之后用辗转相除法进行计算注意事项:要搞清楚参数的传递 参考代码:def gy(a,b): a = min(a, b) b = max(…… 题解列表 2022年11月20日 0 点赞 0 评论 498 浏览 评分:0.0
C语言 电报加密& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define Long 80//允许输入字符串长度int main(){ v…… 题解列表 2022年11月20日 0 点赞 0 评论 413 浏览 评分:0.0