請問是怎麼了?
#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
long long m,h,a;
while(scanf("%lld",&a)==1)
{
for(int i=1;i<=a;i++)
{
scanf("%lld%lld",&m,&h);
long long b=400,hs=1000,t=600,k0[3]={},k1[3]={},k2[3]={};
for(int i=1;i<=3;i++){scanf("%lld%lld%lld%lld%lld%lld%ld%lld%lld",&k0[i],&k1[i],&k2[i]);}
if(h>=21||(h>=0&&h<6)||(h>=14&&h<16))
{b=b*k0[1]/100;hs=hs*k0[3]/100;t=t*k0[2]/100;}
if((h>=9&&h<14)||(h>=19&&h<21))
{b=b*k1[1]/100;hs=hs*k1[3]/100;t=t*k1[2]/100;}
if((h>=6&&h<9)||(h>=17&&h<19))
{b=b*k2[1]/100;hs=hs*k2[3]/100;t=t*k2[2]/100;}
if(hs<=m){printf("HSR\n");continue;}
if(t<=m){printf("Train\n");continue;}
if(b<=m){printf("Bus\n");continue;}
if(hs>m&&t>m&&b>m)printf("Walk home\n");
}
}
return 0;
}