d066.
上學去吧!
--
板橋高中教學題
| From: [111.243.231.95] |
發表日期
:
2011-07-11 16:12
#include <iostream>
using namespace std;
int main()
{
int iHour,iTime;
while(cin>>iHour>>iTime){
if(iHour == 7 && iTime >=30)
cout <<"At School" <<endl;
else if(iHour>=8 && iHour<17)
cout <<"At School" <<endl;
else if(iHour==17 && iTime==0)
cout <<"At School" <<endl;
else
cout<<"Off School"<<endl;
}
return 0;
}