应该基本都长这样吧
原题链接:368.完成闰年判定函数2024-10-12 21:04:39
发布于:上海
#include<iostream>
using namespace std;
int is_leap(int a){
    if(a%4==0&&a%100!=0||a%400==0) return true;
    else return 0;
}
int main() {
	int n;
	cin >> n;
	if(is_leap(n)) cout << "Y" << endl;
	else cout << "N" << endl;
    
   return 0;
} 
全部评论 1
- 哥们你姓张吗 - 2024-10-12 来自 河南 0- 不,但给我这个号的人是的,但应该不是你说的那个人 - 2024-10-12 来自 上海 0
- 我只是一个转世 - 2024-10-12 来自 上海 0
 











有帮助,赞一个