408163: GYM103034 F Mystery

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

F. Mysterytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output

This problem requires interaction with a custom Discord bot.

There are $$$5$$$ mysterious subproblems in this problem. A mysterious bot has already solved this problem, and now it's your turn!

You may provide test inputs to the bot, and it will automatically tell you the correct result! If only you can just let it solve the problem for you......

Anyway, you can find the bot in this Discord server: https://discord.gg/JJxwuSbyuE

Use the command m!help to access the help menu for the bot. Use m!ask <problem number> <input> to learn the output for your given input.

Technical Note: Strings starting with an integer such as 1aa is judged as an integer in the bot but will never appear in the test data, so don't worry about it.

Input

The first line of input contains two integers, $$$t$$$ and $$$k$$$ ($$$1 \le t \le 50000$$$, $$$1 \le k \le 5$$$). $$$t$$$ denotes the number of testcases, whereas $$$k$$$ denotes the problem number.

Then, $$$t$$$ lines follow, where each line contains a valid input to problem $$$k$$$.

Output

Output $$$t$$$ lines, where the $$$i$$$-th line contains the correct output for the $$$i$$$-th input.

Scoring

Each test passed will contribute to your points.

Problem $$$1$$$ is worth $$$3$$$ points overall.

Problem $$$2$$$ is worth $$$16$$$ points overall.

Problem $$$3$$$ is worth $$$30$$$ points overall.

Problem $$$4$$$ is worth $$$25$$$ points overall.

Problem $$$5$$$ is worth $$$26$$$ points overall.

Maximum score for this problem is thus $$$100$$$ points.

ExampleInput
5 4
5
8
9
50
100
Output
r
n
n
r
a

加入题单

上一题 下一题 算法标签: