卬高杯
提出id | 提出時刻 | ユーザー名 | 問題 | 言語 | 判定状況 | 判定 | 実行時間 |
---|---|---|---|---|---|---|---|
115018 | 2023-10-25 23:05:12 | A | A | cpp | 19/19 | AC | 6 |
#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