ブルーブリッジカップ基礎練習報時アシスタント


#include 
#include 
#include 
#include 
#include 
using namespace std;

string solve(int num)
{
	if(num==0)	
		return "zero";
	else if(num==1)
		return "one";
	else if(num==2)
		return "two";
	else if(num==3)
		return "three";
	else if(num==4)
		return "four";
	else if(num==5)
		return "five";
	else if(num==6)
		return "six";
	else if(num==7)
		return "seven";
	else if(num==8)
		return "eight";
	else if(num==9)
		return "nine";
	else if(num==10)
		return "ten";
	else if(num==11)
		return "eleven";
	else if(num==12)
		return "twelve";
	else if(num==13)
		return "thirteen";
	else if(num==14)
		return "fourteen";
	else if(num==15)
		return "fifteen";
	else if(num==16)
		return "sixteen";
	else if(num==17)
		return "seventeen";
	else if(num==18)
		return "eighteen";
	else if(num==19)
		return "nineteen";
	else if(num==20)
		return "twenty";
	else if(num==30)
		return "thirty";
	else if(num==40)
		return "forty";
	else if(num==50)
		return "fifty";
	else
		{
			string temp="";
			int a=num/10,b=num%10;
			switch(a)
			{
				case 2:temp+="twenty";break;
				case 3:temp+="thirty";break;
				case 4:temp+="forty";break;
				case 5:temp+="fifty";break;
			}
			switch(b)
			{
				case 1:temp+=" one";break;
				case 2:temp+=" two";break;
				case 3:temp+=" three";break;
				case 4:temp+=" four";break;
				case 5:temp+=" five";break;
				case 6:temp+=" six";break;
				case 7:temp+=" seven";break;
				case 8:temp+=" eight";break;
				case 9:temp+=" nine";break;
			}
			return temp;
		}
	
}
int main()
{
	int h,m;
	scanf("%d %d",&h,&m);
	cout<