#45673: 簡單明瞭的解法


ercheng2011@gmail.com (Arthur Wang)

School : No School
ID : 274284
IP address : [60.248.154.143]
Last Login :
2025-06-25 15:54:22
d066. 上學去吧! -- 板橋高中教學題 | From: [112.104.66.104] | Post Date : 2025-03-29 22:13

#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;
}
 
ZeroJudge Forum