結果
| 問題 |
No.9010 うるう年判定
|
| ユーザー |
jellyfish_26
|
| 提出日時 | 2017-05-18 01:02:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 417 bytes |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 59,024 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-17 21:06:28 |
| 合計ジャッジ時間 | 1,294 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 25 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int N;
cin >> N;
long double a = N/4;
long double b = N/100;
long double c = N/400;
if ( ceil(a) == floor(a) ) {
if ( ceil(b) == floor(b)) {
if ( ceil(c) == floor(c)) {
cout << "Yes" << endl;
}
cout << "No" << endl;
}
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
jellyfish_26