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

26515번 - Judy 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB146817356.154%

문제

Judy, the office robot, communicates only in numbers. To understand “her”, Jeff, your immediate supervisor, has asked you to write a translator. To play a prank on Jeff, especially since he did the same to you earlier in the week, you decide to translate Judy’s messages into a simple form of Pig Latin.

Judy only speaks in numbers that translate into alphabet characters according to the ASCII standard. Sometimes “she” hiccups and gives a number that does not represent a letter. You decide to represent these hiccups with a '-' (dash) and hopefully Jeff can figure it out by context. The numbers may indicate upper or lower case letters, but Jeff only wants the translated message in lowercase.

In this simple form of Pig Latin, the first character of the word is placed at the end translated word, with an ‘ay’ added to the end of the string. There are more complex aspects of Pig Latin you could include, but you decide to keep it simple for now.

입력

The first line of input contains a single positive integer, n, indication the number of data sets. Each data set is comprised of a single line representing one word of “Judy” speak. The values on one line are separated by spaces.

출력

The “Judy speak” lowercased, then translated to Pig Latin. Any value that does not translate to an alphabet character should be represented as a '-' (dash).

제한

예제 입력 1

3
84 104 101
81 85 7300 67 75
102 111 120

예제 출력 1

hetay
u-ckqay
oxfay

힌트

출처

School > PLU High School Programming Contest > PLU 2016 > Advanced 7번

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

출처

대학교 대회

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

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