秋祭 | 静岡高校工学部



卬高杯


提出詳細

提出id提出時刻ユーザー名問題言語判定状況判定実行時間
1150182023-10-25 23:05:12AAcpp19/19AC6

#include <bits/stdc++.h>
using namespace std;
 

int main() {
    int year = 1882; // 静岡高校の開校年
    int current_year = 2023; // 現在の西暦年(適宜変更してください)
cin>> current_year;
    if (current_year >= year) {
        int first_year = current_year - year + 1;
        cout << first_year << endl;
    } else {
        cout << -1 << endl;
    }

    return 0;

}

sample1.txt AC 2
sample2.txt AC 2
sample3.txt AC 3
sample4.txt AC 6
sample5.txt AC 6
case1.txt AC 6
case2.txt AC 6
case3.txt AC 6
case4.txt AC 6
case5.txt AC 6
case6.txt AC 6
case7.txt AC 6
case8.txt AC 6
case9.txt AC 6
case10.txt AC 6
case11.txt AC 6
case12.txt AC 6
case13.txt AC 6
case14.txt AC 6
6 AC6 AC