結果

問題 No.779 Heisei
ユーザー leaf+
提出日時 2019-04-14 09:50:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 54,564 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 05:38:04
合計ジャッジ時間 1,225 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main() {
    int y, m, d, ans = 0;
    cin >> y >> m >> d;
    if ((1989 < y) && (y < 2019)) {ans = 1;}
    else if ((y == 1989) && (1 < m)) {ans = 1;}
    else if ((y == 1989) && (m == 1) && (d >= 8)) {ans = 1;}
    else if ((y == 2019) && (m < 5)) {ans = 1;}
    if (ans == 1) {cout << "Yes";}
    else {cout << "No";}
}
0