結果

問題 No.779 Heisei
ユーザー ohreitetsuohreitetsu
提出日時 2019-03-06 23:06:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 306 bytes
コンパイル時間 560 ms
コンパイル使用メモリ 64,332 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 05:17:56
合計ジャッジ時間 1,379 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string.h>
using namespace std;

int main(int argc, char* argv[])
{
	int Y,M,D;
	cin>>Y>>M>>D;
	char Date[100];
	sprintf(Date,"%04d%02d%02d",Y,M,D);
	if (strcmp(Date,"19890108")>=0 && strcmp(Date,"20190430")<=0){
		cout<<"Yes"<<endl;
	}else{
		cout<<"No"<<endl;
	}
	return 0;
}
0