結果
| 問題 |
No.779 Heisei
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-27 15:25:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 62,764 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 04:37:36 |
| 合計ジャッジ時間 | 1,360 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
int y,m,d;
main()
{
cin>>y>>m>>d;
if(y<1989)cout<<"No"<<endl;
else if(y==1989)
{
if(m>1)cout<<"Yes"<<endl;
else if(d>7)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
else if(y<2019)cout<<"Yes"<<endl;
else if(y==2019)
{
if(m<5)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
else cout<<"No"<<endl;
}