邪修xxxxxxxxxxxxxxxx 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; &nb…… 题解列表 2025年11月06日 0 点赞 0 评论 8 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) (y%4==0&&am…… 题解列表 2025年04月16日 0 点赞 0 评论 362 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (…… 题解列表 2025年03月21日 0 点赞 0 评论 240 浏览 评分:0.0
1039-宏定义闰年判断c++ 摘要:原题链接:[https://www.dotcpp.com/oj/problem1039.html](https://www.dotcpp.com/oj/problem1039.html) 参考代…… 题解列表 2024年05月26日 0 点赞 0 评论 557 浏览 评分:10.0
宏定义之闰年判断 摘要:解题思路:要求解此题,首先需要直到如何判断闰年当能被4整除但不能被100整除的是闰年,或者能被100和400整除的是闰年注意事项:需知道定义红宏时,若后面的条件成立则此时会返回1,不成立则返回0参考代…… 题解列表 2024年01月21日 0 点赞 0 评论 521 浏览 评分:0.0
编写题解 1039: 宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=…… 题解列表 2023年03月16日 0 点赞 0 评论 245 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:```cpp #include #define LEAP_YEAR(y) (y%100!=0&&y%4==0||y%400==0)?'L':'N' int main() { int y;…… 题解列表 2022年12月06日 0 点赞 0 评论 867 浏览 评分:7.0
C++三目超简 摘要:解题思路:如果年份整除于4但不整除于100则为普通闰年,如果年份整除于400则为世纪闰年.我们可以通过三目运算符来进行判断。注意事项:注意格式规范参考代码:#include <iostream>#de…… 题解列表 2022年11月26日 0 点赞 0 评论 493 浏览 评分:7.3
定义宏,判断是否为闰年 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y) y%100 ==0 && y%4 ==0 && y…… 题解列表 2022年10月26日 0 点赞 0 评论 258 浏览 评分:0.0