数函……
查看原帖
数函……
1495558
ygfsnd楼主2025/1/18 14:35
#include<bits/stdc++.h>
using namespace std;
int runnian(int year){
	if((year%4==0&&year%100!=0)||year%400==0) return 1;
	else return 0;
}
int main(){
	int year;
	cin>>year;
	int ans;
	ans=runnian(year);
	cout<<ans;
	return 0;
} 
2025/1/18 14:35
加载中...