結果

問題 No.9010 うるう年判定
ユーザー T.Stream
提出日時 2020-04-14 13:05:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 758 ms
コンパイル使用メモリ 66,048 KB
最終ジャッジ日時 2025-01-09 18:35:01
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

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