#11432: 一直NA


ethan555066 (unknown)


#include <iostream>

using namespace std;

int main(int argc, char** argv) {
 
 int x,y;
 cin >> x >> y;
 
 if(x>=0 && x<=23 && y>=0 && y<=59){
  if(x<=7 && y<=30)
   cout << "Off School";
  else if(x>=17 && y>=0)
   cout << "Off School";
  else if(x>=7 && y>0)
   cout << "At School";
  else if(x<=17 && y<0)
   cout << "At School";
 }
 
 
 
 return 0;
}

#11438: Re:一直NA


555047 (09李承晏306)


把程式碼放在一個迴圈裡

#11539: Re:一直NA


asd3136396 (unknown)


#include

using namespace std;

int main(int argc, char** argv) {
 
 int x,y;
 cin >> x >> y;
 
 if(x>=0 && x<=23 && y>=0 && y<=59)

{

 if(x==7 && y>=30)

   cout << "At School"

else if(x>7 && x<17) 
   cout << "At School";

else cout << "Off School";
 }
 
 
 
 return 0;
}

把上課時間找出來 ,剩下的時間就確定不是上課時間了喔!!!