#33562: 基礎解法


yp11151119@yphs.tp.edu.tw (802-32張鈞晏)

學校 : 臺北市私立延平高級中學
編號 : 197210
來源 : [203.72.178.1]
最後登入時間 :
2023-12-01 15:16:02
d066. 上學去吧! -- 板橋高中教學題 | From: [203.72.178.1] | 發表日期 : 2023-01-12 17:36

#include<bits/stdc++.h>
using namespace std;
int main(){
    int h,m,t;
    cin>>h>>m;
    t=h*60+m;
    (t>=450 and t<1020) ? cout<<"At School" : cout<<"Off School";
    return 0;
}

 
ZeroJudge Forum