#15237: 時間轉int之奇葩解


squirrel (松鼠)

學校 : 國立聯合大學
編號 : 84546
來源 : [60.244.153.173]
最後登入時間 :
2025-02-08 05:07:20

#include <iostream>
using namespace std;

int main(){
int a, b;
while(cin>>a>>b){
int n = a*100+b; //convert time to int
if( (n>=730) && (n<1700)) cout<<"At School"<<endl;
else cout<<"Off School"<<endl;
}

return 0;
}