C++简单写法--------------------------------------
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (……
编写题解 1039: 宏定义之闰年判断
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=……
定义宏,判断是否为闰年
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define LEAP_YEAR(y) y%100 ==0 && y%4 ==0 && y……
[编程入门]宏定义之闰年判断
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n;int main(){ cin>>n; if(n%10……
宏定义之闰年判断 题解
摘要:解题思路:这题就是判断是否是闰年嘛!简单。判断方法如下:第一、y%4==0并且y%100!=0;第二、y%400==0。注意事项:无。参考代码:#include<bits/stdc++.h>#defi……
编写题解 1039: [编程入门]宏定义之闰年判断--解题
摘要:解题思路:注意事项:参考代码:#include <iostream> #define LEAP_YEAR(y) leap(y) //替换为该子函数 using namespace std; char ……