解法一
✅ 完整代碼
評分結果(參考) : AC (2ms, 352KB)
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int h;
cin >> h;
if(h-15 < 0) cout << h + 24 - 15;
else cout << h - 15;
return 0;
}