fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5. int hh;
  6. int mm;
  7. cin>>hh>>mm;
  8. if(hh>=0 and hh<7){
  9. cout<<"Off School";
  10. }
  11. else if(hh>=17 and hh<=24){
  12. cout<<"Off School";
  13. }
  14. else if(hh>=8 and hh<=16){
  15. cout<<"At School";
  16. }
  17. else if((hh==7) and (mm>=0 and mm<=30)){
  18. cout<<"Off School";
  19. }
  20. else{
  21. cout<<"At School";
  22. }
  23. }
  24.  
  25.  
  26.  
  27.  
Success #stdin #stdout 0s 5248KB
stdin
07 30






stdout
Off School