結果

問題 No.9010 うるう年判定
ユーザー IL_msta
提出日時 2017-04-24 01:49:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 356 ms
コンパイル使用メモリ 55,272 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-22 10:23:45
合計ジャッジ時間 1,113 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 23 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
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);
      |    ~~~~~^~~~~~~~~

ソースコード

diff #

#include <iostream>
using namespace std;
bool is_uruu(int N){
    if( N%4 ) return false;
    if( N%100)return true;
    if( N%400)return true;
    return false;
}
signed main()
{int N;
   scanf("%d",&N);
   puts(is_uruu(N)?"Yes":"No");
}

0