xs,只能对1900年使用暴力了
查看原帖
xs,只能对1900年使用暴力了
229218
最萌軒宇楼主2022/10/10 21:07

这玩意怎么解决?

#include <iostream>
using namespace std;
int n;
int main(){
	cin >> n;
	if(n == 1900){
		cout << 0;
		return 0;
	}
	if(n % 4 != 0){
		cout << 0;
	}else{
		cout << 1;
	}
	return 0;
}

AC,但是对1900暴力

2022/10/10 21:07
加载中...