結果

問題 No.9010 うるう年判定
ユーザー Solana4149
提出日時 2020-10-05 21:46:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 405 bytes
コンパイル時間 1,507 ms
コンパイル使用メモリ 165,072 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 22:15:01
合計ジャッジ時間 2,505 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
const long long MOD = 1e9+7;
using namespace std;
#define ll long long
#define ar array
#define FOR(i,n) for(i=0;i<n;i++)

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin >> n;
	if (n%4==0) {
		if (n%100==0) {
			if (n%400==0) {
				cout << "Yes" << endl;
			} else cout << "No" << endl;
		} else cout << "Yes" << endl;
	} else cout << "No" << endl;
	return 0;
}
0