C++宏定义闰年判断 摘要:解题思路:闰年:能被4但不能被100整除 或 能被400整除注意事项:宏定义换行要用\参考代码:#include<iostream>using name…… 题解列表 2026年04月23日 0 点赞 0 评论 27 浏览 评分:0.0
邪修xxxxxxxxxxxxxxxx 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; &nb…… 题解列表 2025年11月06日 0 点赞 0 评论 257 浏览 评分:0.0
[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define LEAP_YEAR(year)\{\ if((year % 4 == 0 &am…… 题解列表 2025年11月04日 1 点赞 0 评论 423 浏览 评分:10.0
[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) yearint main(){ int year=0;&…… 题解列表 2025年09月19日 2 点赞 0 评论 639 浏览 评分:10.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) (y%4==0&&am…… 题解列表 2025年04月16日 0 点赞 0 评论 508 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (…… 题解列表 2025年03月21日 0 点赞 0 评论 355 浏览 评分:0.0
关键宏定义 摘要:解题思路:闰年就是能够被4整除且不能被100整除的年份,或者是能被400整除的年份注意事项:宏定义判断条件的使用参考代码:#include<stdio.h>#define LEAP_YEAR(y) (…… 题解列表 2024年12月20日 2 点赞 0 评论 968 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断(python) 摘要:#### ~~~python def islun(n): if n%4 == 0 and n%100 != 0: return 'L' if n%400…… 题解列表 2024年10月22日 0 点赞 0 评论 1055 浏览 评分:9.9
简单的替代 摘要:解题思路:无它,只用把判断条件用宏定义表示注意事项:参考代码:#include<stdio.h>#define LAEP_YEAR(y) y%4==0&&y%100!=0||y%400==0int m…… 题解列表 2024年09月11日 1 点赞 0 评论 660 浏览 评分:0.0