[编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) yearint main(){ int year=0;&…… 题解列表 2025年09月19日 0 点赞 0 评论 252 浏览 评分:0.0
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) (y%4==0&&am…… 题解列表 2025年04月16日 0 点赞 0 评论 333 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (…… 题解列表 2025年03月21日 0 点赞 0 评论 224 浏览 评分:0.0
关键宏定义 摘要:解题思路:闰年就是能够被4整除且不能被100整除的年份,或者是能被400整除的年份注意事项:宏定义判断条件的使用参考代码:#include<stdio.h>#define LEAP_YEAR(y) (…… 题解列表 2024年12月20日 2 点赞 0 评论 761 浏览 评分: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 评论 702 浏览 评分:9.9
简单的替代 摘要:解题思路:无它,只用把判断条件用宏定义表示注意事项:参考代码:#include<stdio.h>#define LAEP_YEAR(y) y%4==0&&y%100!=0||y%400==0int m…… 题解列表 2024年09月11日 1 点赞 0 评论 487 浏览 评分:0.0
编写题解 1039: [编程入门]宏定义之闰年判断(java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2024年09月10日 0 点赞 0 评论 320 浏览 评分:9.9
宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define LEAP_YEAR(y) (((y) % 4 == 0 …… 题解列表 2024年09月01日 0 点赞 0 评论 382 浏览 评分:0.0
无聊的星期六 摘要:#include <stdio.h> #define LEAP_YEAR(y) putchar((y % 400 == 0 || y % 4 == 0 && y % 100 != 0)?'…… 题解列表 2024年08月17日 0 点赞 0 评论 743 浏览 评分:0.0
1039-宏定义闰年判断c++ 摘要:原题链接:[https://www.dotcpp.com/oj/problem1039.html](https://www.dotcpp.com/oj/problem1039.html) 参考代…… 题解列表 2024年05月26日 0 点赞 0 评论 524 浏览 评分:10.0