#4562. A to Z String 2

0

A to Z String 2

A to Z String 2

题目描述

找出由按顺序连接下列字符得到的字符串的第 XX 个字符:NN 个 AA,NN 个 BB,…,以及 NN 个 ZZ。

输入格式

Input is given from Standard Input in the following format: NN XX

输出格式

Print the answer.

1 3
C
2 12
F

提示

1≤N≤1001 \leq N \leq 100 1≤X≤N×261 \leq X \leq N\times 26 All values in input are integers.We obtain the string ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ, whose 33-rd character from the beginning is CC.
We obtain the string $AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ$, whose 1212-th character from the beginning is FF.

标签: AtCoder|abc257A

来源

AtCoder|abc257A