結果
| 問題 | No.779 Heisei | 
| コンテスト | |
| ユーザー |  f843nmfwisfeuw | 
| 提出日時 | 2020-08-18 15:43:12 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 881 bytes | 
| コンパイル時間 | 1,113 ms | 
| コンパイル使用メモリ | 91,740 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-12 02:49:19 | 
| 合計ジャッジ時間 | 1,652 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
#include <bitset>
#include <cassert>
using namespace std;
bool m(int Y, int M, int D) {
    if (Y == 1989) {
        if (M == 1) {
            if (D >= 8) {
                return true;
            } else {
                return false;
            }
        } else {
            return true;
        }
    } else if (1990 <= Y and Y <= 2018) {
        return true;
    } else if (Y == 2019) {
        if (M <= 4) {
            return true;
        } else {
            return false;
        }
    } else {
        return false;
    }
}
int main() {
    int Y, M, D;
    cin >> Y >> M >> D;
    cout << (m(Y, M, D) ? "Yes" : "No") << endl;
    return 0;
}
            
            
            
        