解法一
🔹 年份轉換
民國年份 = 西元年份 - 1911
✅ 完整代碼
評分結果(參考) : AC (2ms, 336KB)
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int y;
cin >> y;
cout << y - 1911;
return 0;
}