結果
問題 |
No.779 Heisei
|
ユーザー |
|
提出日時 | 2020-03-29 20:11:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 27,136 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 15:45:39 |
合計ジャッジ時間 | 906 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); | ~~~~~^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio> int main(void){ int Y,M,D; scanf("%d %d %d",&Y,&M,&D); if(1989*366+1*31+8<=Y*366+M*31+D*1 && Y*366+M*31+D*1<=2019*366+4*31+30)printf("Yes\n"); else printf("No\n"); return 0; }