C++代码宏定义闰年判断 摘要:解题思路:四年一闰;百年不闰,四百年再闰if ((y%4==0) and (y%100!=0) or (y%400==0)) cout<<'L'<<endl;else cout<<&#…… 题解列表 2021年12月28日 0 点赞 0 评论 326 浏览 评分:0.0
数组查找和替换 摘要:解题思路:注意事项:参考代码:a=input()m=int(a.split()[0])n=int(a.split()[1])x=[]c=input().split()for i in range(0,…… 题解列表 2021年12月28日 0 点赞 0 评论 317 浏览 评分:0.0
C++代码带实参宏定义 摘要:解题思路:#define s(a,b,c) ((a+b+c)/2)#define area(a,b,c,s) sqrt(s(a,b,c)*(s(a,b,c)-a)*(s(a,b,c)-b)*(s(a,…… 题解列表 2021年12月28日 0 点赞 0 评论 370 浏览 评分:0.0
C++宏定义求余数 摘要:解题思路:#define remainder a%b注意事项:暂时不明参考代码:#include<iostream>#include<string>using namespace std;#defin…… 题解列表 2021年12月28日 0 点赞 0 评论 622 浏览 评分:0.0
C++代码带参宏定义的使用 摘要:解题思路:关于带参宏定义的使用https://blog.csdn.net/liufuchun111/article/details/84285629注意事项:暂时不明参考代码:#include<ios…… 题解列表 2021年12月28日 0 点赞 0 评论 658 浏览 评分:6.0
1147: C语言训练-角谷猜想 摘要:解题思路:很有意思的一个猜想,在上世纪七十年还成为了一股风靡数学界的潮流,现在已经知道在7*10^11的数值里面角谷猜想都是成立的,不过如果无法在数学的角度给出证明,他只能停留在猜想的层面。如果有人能…… 题解列表 2021年12月28日 0 点赞 0 评论 1200 浏览 评分:9.9
1584: 蓝桥杯算法训练VIP-判定字符位置(python) 摘要:解题思路:注意事项:参考代码:let =['a','e','i','o','u'] s = input() sum …… 题解列表 2021年12月28日 0 点赞 0 评论 351 浏览 评分:9.9
使用set来统计数 摘要:解题思路:注意事项:参考代码:a=int(input())b=input().split()m=[]for i in range(0,len(b)): m.append(int(b[i]))n=…… 题解列表 2021年12月28日 0 点赞 0 评论 309 浏览 评分:0.0
1672: 迷宫问题-C语言 摘要:```c //迷宫问题 //此篇看着题解中另外一位佬写出来的,记录一下自己的做题 #include #include #include #define N 100 #define …… 题解列表 2021年12月28日 0 点赞 0 评论 427 浏览 评分:9.9
1673: 数据结构-集合union-C语言 摘要:```c //集合union #include #include typedef struct node { int data; struct node *next;…… 题解列表 2021年12月28日 0 点赞 0 评论 648 浏览 评分:7.3