atcoder#ABC257A. [ABC257A] A to Z String 2
[ABC257A] A to Z String 2
Score : points
Problem Statement
Find the -th character from the beginning of the string that is obtained by concatenating these characters: copies of A
's, copies of B
's, …, and copies of Z
's, in this order.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
1 3
C
We obtain the string ABCDEFGHIJKLMNOPQRSTUVWXYZ
, whose -rd character from the beginning is C
.
2 12
F
We obtain the string AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ
, whose -th character from the beginning is F
.