#26258: 把時間換成分鐘


10931463@gafe.cksh.tp.edu.tw (凱廷陳)


#include <iostream>

#include <cstdlib>

#include <iomanip>

#include <math.h>

using namespace std;

int main()

{

   

   int a,b;

   cin>>a>>b;

   if(a*60+b>=450 && a*60+b<1020)

   cout<<"At School";

   else

   cout<<"Off School";

  

   //system("pause");

   return 0;

}

 

#26993: Re:把時間換成分鐘


406490150@gms.tku.edu.tw (我是朱朱)


內建的時鐘,真的只是數字而已,這方法很通用,讚!