#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int x,y;
cin >> x >> y;
if(x>=0 && x<=23 && y>=0 && y<=59){
if(x<=7 && y<=30)
cout << "Off School";
else if(x>=17 && y>=0)
cout << "Off School";
else if(x>=7 && y>0)
cout << "At School";
else if(x<=17 && y<0)
cout << "At School";
}
return 0;
}
#include
using namespace std;
int main(int argc, char** argv) {
int x,y;
cin >> x >> y;
if(x>=0 && x<=23 && y>=0 && y<=59)
{
if(x==7 && y>=30)
cout << "At School"
else if(x>7 && x<17)
cout << "At School";
else cout << "Off School";
}
return 0;
}
把上課時間找出來 ,剩下的時間就確定不是上課時間了喔!!!