#51835: c++正解跟思路 (想學再點)


yp11451032@yphs.tp.edu.tw (711-23吳嘉恩)

學校 : 不指定學校
編號 : 312870
來源 : [203.72.178.2]
最後登入時間 :
2025-10-09 17:59:35

#include<iostream>
using namespace std;
 int main(){
int h, m, t;
cin>>h>>m;
t=h*60+m;//換成分鐘
if(t>=450&&t<1020)//比大小
cout<<"At School";
else
cout<<"Off School";
}