#15237: 時間轉int之奇葩解


squirrel (松鼠)

學校 : 國立聯合大學
編號 : 84546
來源 : [60.244.153.157]
最後登入時間 :
2024-03-18 09:38:02
d066. 上學去吧! -- 板橋高中教學題 | From: [113.61.219.185] | 發表日期 : 2018-09-22 13:54

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

 
ZeroJudge Forum