#2713: take the ans!!!!!!!


1753713-4@g.puiching.edu.mo (林柏澔P6D15wz)

School : Pui Ching Middle School
ID : 3441
IP address : [192.168.120.33]
Last Login :
2025-09-18 11:09:14
a022. 上學去吧! | From: [192.168.120.33] | Post Date : 2025-10-23 22:30

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

 

 
#2716: Re:take the ans!!!!!!!


1853325-6@g.puiching.edu.mo (李泓熹P5A08)

School : No School
ID : 3499
IP address : [192.168.120.33]
Last Login :
2025-10-30 14:40:14
a022. 上學去吧! | From: [192.168.120.33] | Post Date : 2025-10-26 14:12

#include 
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;
}

 


Yeah take it 

#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