Logo
(追記) (追記ここまで)

13371번 - Dolphin 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB1781059263.448%

문제

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.

제한

예제 입력 1

5
1
2
3
4
100

예제 출력 1

1 dolphin
1 jump
splash
2 dolphins
8 jumps

힌트

출처

ICPC > Regionals > Asia Pacific > Thailand > Thailand Central Group-A Programming Contest > Thailand Central Group-A Programming Contest 2016 G번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /