#94

by asd

Submitted 3 years 6 months 1 day ago
Mon May 10 19:10:02 CST 2021
Judger: judger1
Dataset Version: v2

4 ms / 8876 KB
Final 100
Problem: lss4.dandelion2
Language: GNU C++ 11


#1

4ms / 8876KB / Accepted
Input
1
2
3
4
5
6
7
8
9
10
Output
one
two
three
four
five
six
seven
eight
nine
ten
Answer
one
two
three
four
five
six
seven
eight
nine
ten
Checker Information
10 tokens

#2

3ms / 8756KB / Accepted
Input
11
12
13
14
15
16
17
18
19
20
Output
eleven
twelve
thirteen
fourteen
fifteen
sixteen
seventeen
eighteen
nineteen
twenty 
Answer
eleven
twelve
thirteen
fourteen
fifteen
sixteen
seventeen
eighteen
nineteen
twenty 
Checker Information
10 tokens

#3

3ms / 8832KB / Accepted
Input
21
22
23
24
25
26
27
28
29
30
Output
twenty one
twenty two
twenty three
twenty four
twenty five
twenty six
twenty seven
twenty eight
twenty nine
thirty 
Answer
twenty one
twenty two
twenty three
twenty four
twenty five
twenty six
twenty seven
twenty eight
twenty nine
thirty 
Checker Information
19 tokens

#4

3ms / 8764KB / Accepted
Input
31
32
33
34
35
36
37
38
39
40
Output
thirty one
thirty two
thirty three
thirty four
thirty five
thirty six
thirty seven
thirty eight
thirty nine
forty 
Answer
thirty one
thirty two
thirty three
thirty four
thirty five
thirty six
thirty seven
thirty eight
thirty nine
forty 
Checker Information
19 tokens

#5

3ms / 8836KB / Accepted
Input
41
42
43
44
45
46
47
48
49
50
Output
forty one
forty two
forty three
forty four
forty five
forty six
forty seven
forty eight
forty nine
fifty 
Answer
forty one
forty two
forty three
forty four
forty five
forty six
forty seven
forty eight
forty nine
fifty 
Checker Information
19 tokens

#6

3ms / 8832KB / Accepted
Input
51
52
53
54
55
56
57
58
59
60
Output
fifty one
fifty two
fifty three
fifty four
fifty five
fifty six
fifty seven
fifty eight
fifty nine
sixty 
Answer
fifty one
fifty two
fifty three
fifty four
fifty five
fifty six
fifty seven
fifty eight
fifty nine
sixty 
Checker Information
19 tokens

#7

3ms / 8836KB / Accepted
Input
61
62
63
64
65
66
67
68
69
70
Output
sixty one
sixty two
sixty three
sixty four
sixty five
sixty six
sixty seven
sixty eight
sixty nine
seventy 
Answer
sixty one
sixty two
sixty three
sixty four
sixty five
sixty six
sixty seven
sixty eight
sixty nine
seventy 
Checker Information
19 tokens

#8

2ms / 8840KB / Accepted
Input
71
72
73
74
75
76
77
78
79
80
Output
seventy one
seventy two
seventy three
seventy four
seventy five
seventy six
seventy seven
seventy eight
seventy nine
eighty 
Answer
seventy one
seventy two
seventy three
seventy four
seventy five
seventy six
seventy seven
seventy eight
seventy nine
eighty 
Checker Information
19 tokens

#9

3ms / 8840KB / Accepted
Input
81
82
83
84
85
86
87
88
89
90
Output
eighty one
eighty two
eighty three
eighty four
eighty five
eighty six
eighty seven
eighty eight
eighty nine
ninety 
Answer
eighty one
eighty two
eighty three
eighty four
eighty five
eighty six
eighty seven
eighty eight
eighty nine
ninety 
Checker Information
19 tokens

#10

4ms / 8756KB / Accepted
Input
91
92
93
94
95
96
97
98
99
100
Output
ninety one
ninety two
ninety three
ninety four
ninety five
ninety six
ninety seven
ninety eight
ninety nine
one hundred
Answer
ninety one
ninety two
ninety three
ninety four
ninety five
ninety six
ninety seven
ninety eight
ninety nine
one hundred
Checker Information
20 tokens
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <queue>
#include <map>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include <deque>
#include <bits/stdc++.h>
//#include "testlib.h"
using namespace std;
#define ll long long
#define pii pair<int,int>
#define qi ios::sync_with_stdio(0)

bool debug=true;

/*    *************************************
	  * Written in New Computer           *
	  * The following code belongs to     *
	  * XiaoGeNintendo of HellHoleStudios *
	  *************************************
*/
template<typename T1,typename T2>ostream& operator<<(ostream& os,pair<T1,T2> ptt){
	os<<ptt.first<<","<<ptt.second;
	return os;
}
template<typename T>ostream& operator<<(ostream& os,vector<T> vt){
	os<<"{";
	for(int i=0;i<vt.size();i++){
		os<<vt[i]<<" ";
	}
	os<<"}";
	return os;
}

string x[]={"","one","two","three","four","five","six","seven","eight","nine"};
string y[]={"ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
string z[]={"twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
int main(){
	int n;
	while(cin>>n){
		if(n<10){
			cout<<x[n]<<endl;
		}else if(n<20){
			cout<<y[n-10]<<endl;
		}else if(n==100){
			cout<<"one hundred"<<endl;
		}else{
			cout<<z[n/10-2]<<" "<<x[n%10]<<endl;	
		}
		
	}
}