CF896A.Nephren gives a riddle

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

What are you doing at the end of the world? Are you busy? Will you save us?

Nephren is playing a game with little leprechauns.

She gives them an infinite array of strings, f0... f_{0...\ ∞} .

f0f_{0} is "What are you doing at the end of the world? Are you busy? Will you save us?".

She wants to let more people know about it, so she defines fi=f_{i}= "What are you doing while sending " fi1f_{i-1} "? Are you busy? Will you send " fi1f_{i-1} "?" for all i>=1i>=1 .

For example, f1f_{1} is

"What are you doing while sending "What are you doing at the end of the world? Are you busy? Will you save us?"? Are you busy? Will you send "What are you doing at the end of the world? Are you busy? Will you save us?"?". Note that the quotes in the very beginning and in the very end are for clarity and are not a part of f1f_{1} .

It can be seen that the characters in fif_{i} are letters, question marks, (possibly) quotation marks and spaces.

Nephren will ask the little leprechauns qq times. Each time she will let them find the kk -th character of fnf_{n} . The characters are indexed starting from 11 . If fnf_{n} consists of less than kk characters, output '.' (without quotes).

Can you answer her queries?

输入格式

The first line contains one integer qq ( 1<=q<=101<=q<=10 ) — the number of Nephren's questions.

Each of the next qq lines describes Nephren's question and contains two integers nn and kk ( 0<=n<=105,1<=k<=10180<=n<=10^{5},1<=k<=10^{18} ).

输出格式

One line containing qq characters. The ii -th character in it should be the answer for the ii -th query.

输入输出样例

  • 输入#1

    3
    1 1
    1 2
    1 111111111111
    

    输出#1

    Wh.
  • 输入#2

    5
    0 69
    1 194
    1 139
    0 47
    1 66
    

    输出#2

    abdef
  • 输入#3

    10
    4 1825
    3 75
    3 530
    4 1829
    4 1651
    3 187
    4 584
    4 255
    4 774
    2 474
    

    输出#3

    Areyoubusy

说明/提示

For the first two examples, refer to f0f_{0} and f1f_{1} given in the legend.

首页