|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||0||0||0||0.000%|
Alice and Bob are good friends who trust each other even though they live in different countries. One day Bob had an idea for a startup that will change the world. However, he was in need of funds. Alice agreed to give him the money he needs. As Bob doesn’t have a bank account, Alice told him she’ll transfer the money to her friend Eve who lives in the same city with Bob, and all he needs to do is tell Eve the secret code and she’ll hand him the money.
Since they were communicating over the internet Alice was worried that someone might be spying on their conversation and can hear the secret code. Bob is one of the brightest brains Alice has met, so she decided to tell Bob the code after being hashed by a certain function and she knows that if someone else was listening to their conversation, Bob will still manage to figure out the secret code first. Bob knows the following about the code:
Can you help Bob figure out the secret code quickly before someone else figures out?
Your program will be tested on one or more test cases. The first line of the input will be a single integer T the number of test cases. (1 ≤ T ≤ 100)
Each test case consists of a line containing three space separated integers:
For each test case, print a single line containing the secret code if it is possible to find such a string, or ‘None’ if there isn’t one (quotes are for clarity).
2 2 50 2 4 250 3