結果

問題 No.779 Heisei
ユーザー greentea011
提出日時 2019-03-14 11:59:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 187 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 22,400 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 05:18:47
合計ジャッジ時間 876 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:4:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |     scanf("%d %d %d",&y,&m,&d);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main() {
    int y,m,d;
    scanf("%d %d %d",&y,&m,&d);
    int c=y*10000+m*100+d;
    if ((c>=19890108)&&(c<=20190430)) printf("Yes\n");
    else printf("No\n");
}
0