#1937: I will give you the answer but one chicken cover(雞包)


1753980-3@g.puiching.edu.mo (P5A31蒲雋浠)

School : No School
ID : 2571
IP address : [192.168.120.33]
Last Login :
2025-03-20 12:13:05
a022. 上學去吧! | From: [192.168.120.33] | Post Date : 2025-04-14 21:04

#include <iostream>
using namespace std;

int main() {
    int hh, mm;
    cin >> hh >> mm;
    
    int total = hh * 60 + mm;
    
    if (total >= 450 && total < 1020) {
        cout << "At School" << endl;
    } else {
        cout << "Off School" << endl;
    }
    
    return 0;
}

 

 
ZeroJudge Forum