Nội dung Bài tập
- Mã:
- ABC171.BaiC
- Tên:
- ABC171.BaiC
- Dạng thi:
- oi
- Thang điểm:
- 100 điểm
- Giới hạn thời gian:
- 1 giây
- Giới hạn bộ nhớ:
- 256 MB
- Được tạo bởi:
- admin
Problem Statement
dogs suddenly appeared under the roof of Roger's house, all of which he decided to keep. The dogs had been numbered through , but he gave them new names, as follows:
- the dogs numbered were respectively given the names
a
, b
, ..., z
; - the dogs numbered were respectively given the names
aa
, ab
, ac
, ..., zy
, zz
; - the dogs numbered were respectively given the names
aaa
, aab
, aac
, ..., zzy
, zzz
; - the dogs numbered were respectively given the names
aaaa
, aaab
, aaac
, ..., zzzy
, zzzz
; - the dogs numbered were respectively given the names
aaaaa
, aaaab
, ...; - and so on.
To sum it up, the dogs numbered were respectively given the following names:
a
, b
, ..., z
, aa
, ab
, ..., az
, ba
, bb
, ..., bz
, ..., za
, zb
, ..., zz
, aaa
, aab
, ..., aaz
, aba
, abb
, ..., abz
, ..., zzz
, aaaa
, ...
Now, Roger asks you:
"What is the name for the dog numbered ?"
dogs suddenly appeared under the roof of Roger's house, all of which he decided to keep. The dogs had been numbered through , but he gave them new names, as follows:
- the dogs numbered were respectively given the names
a
,b
, ...,z
; - the dogs numbered were respectively given the names
aa
,ab
,ac
, ...,zy
,zz
; - the dogs numbered were respectively given the names
aaa
,aab
,aac
, ...,zzy
,zzz
; - the dogs numbered were respectively given the names
aaaa
,aaab
,aaac
, ...,zzzy
,zzzz
; - the dogs numbered were respectively given the names
aaaaa
,aaaab
, ...; - and so on.
To sum it up, the dogs numbered were respectively given the following names:
a
, b
, ..., z
, aa
, ab
, ..., az
, ba
, bb
, ..., bz
, ..., za
, zb
, ..., zz
, aaa
, aab
, ..., aaz
, aba
, abb
, ..., abz
, ..., zzz
, aaaa
, ...
Now, Roger asks you:
"What is the name for the dog numbered ?"
Constraints
- is an integer.
- is an integer.
Input
Input is given from Standard Input in the following format:
Input is given from Standard Input in the following format:
Output
Print the answer to Roger's question as a string consisting of lowercase English letters.
Print the answer to Roger's question as a string consisting of lowercase English letters.
Sample Input 1 Copy
Copy2
Copy
2
Sample Output 1 Copy
Copyb
Copy
b
Sample Input 2 Copy
Copy27
Copy
27
Sample Output 2 Copy
Copyaa
Copy
aa
Sample Input 3 Copy
Copy123456789
Copy
123456789
Sample Output 3 Copy
Copyjjddja
Copy
jjddja
Theme :
Mời bạn soạn code
Ai có thể xem bài này :
Thông tin
Phần thảo luận