Logo
(追記) (追記ここまで)

13860번 - Letters 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
0.2 초 256 MB59413874.510%

문제

We build the infinite sequence of uppercase letters (A-Z) which starts with single-letter strings (A, B, …, Z), continues with two-letter strings (AA, AB, …, AZ, BA, BB, …, BZ, …, ZZ), then threeletter strings and so on. The same-length strings are ordered lexicographically. We are interested in finding which letter sits at a given index in the sequence.

입력

The letter index, ranging between 0 and 2*109 .

출력

The letter at the specified index.

제한

예제 입력 1

0

예제 출력 1

A

예제 입력 2

25

예제 출력 2

Z

예제 입력 3

50

예제 출력 3

A

예제 입력 4

100

예제 출력 4

B

예제 입력 5

250

예제 출력 5

E

예제 입력 6

500

예제 출력 6

J

예제 입력 7

1000

예제 출력 7

S

힌트

출처

ICPC > Regionals > Europe > Southeastern European Regional Contest > SEERC 2016 F번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /