結果
| 問題 |
No.9010 うるう年判定
|
| ユーザー |
IL_msta
|
| 提出日時 | 2017-04-24 01:52:46 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 238 bytes |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 55,164 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 01:08:25 |
| 合計ジャッジ時間 | 1,021 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:11:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
ソースコード
#include <iostream>
using namespace std;
bool is_uruu(int N){
if( N%4 ) return false;
if( N%100)return true;
if( N%400)return false;
return true;
}
signed main()
{int N;
scanf("%d",&N);
puts(is_uruu(N)?"Yes":"No");
}
IL_msta