시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 82 | 49 | 45 | 66.176% |
Dolphin is a well-known ice-breaking activity in Thailand. In order to play this game, everyone has to sit in circle. MC will select one person as a starting player. Each person, in clockwise order, has to shout the correct phrase in the dolphin sequence which is “1 dolphin, 1 jump, splash, 2 dolphins, 2 dolphins, 2 jumps, 2 jumps, splash, splash, 3 dolphins, 3 dolphins, 3 dolphins, 3 jumps, 3 jumps, 3 jumps, splash, splash, splash, …” and so on. The game ends when there is one person who shout incorrect phrase. You know that you are n-th person to shout. As a programmer, you want to write a program to calculate the phrase you need to need to shout out.
The first line will contain the number of test cases T (1 ≤ T ≤ 1000)
For each test case, there is an input n (1 ≤ n ≤ 2 000 000 000)
For each test case, print the n-th phrase in the dolphin sequence.
5 1 2 3 4 100
1 dolphin 1 jump splash 2 dolphins 8 jumps