【題解】ZeroJudge d068: 該減肥了!

【題目敘述】https://zerojudge.tw/ShowProblem?problemid=d068

#include <iostream>
using namespace std;

int main() {
    int w;
    cin >> w;
    
    if (w > 50) cout << w - 1 << "\n";
    else cout << w << "\n";
    
    return 0;
}
分享本文 Share with friends