#45673: 簡單明瞭的解法


ercheng2011@gmail.com (Arthur Wang)

學校 : 不指定學校
編號 : 274284
來源 : [211.21.108.88]
最後登入時間 :
2025-07-22 12:03:42

#include <bits/stdc++.h>
using namespace std;
int main() {
    int hh, mm;
    cin>>hh>>mm;
    int totalMinutes=hh*60+mm;
    int startTime=7*60+30;
    int endTime=17*60;
    if (totalMinutes>=startTime&&totalMinutes<endTime){
        cout<<"At School";
    } else {
        cout<<"Off School";
    }
    return 0;
}