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

11149번 - Decode the Message 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB42733531079.082%

문제

Two of your friends Alex and Adam have developed a secret system for sending messages to each other. The only problem is that the system has turned out to be too hard to do by hand. Therefore, Alex has asked for your help to write a program to decode the secret messages. After making you swear never to reveal the system, he explains that the coded message consists of one or more words, only consisting of lower case characters a–z, seperated by spaces. Each word corresponds to one character, a–z or space, and is found by adding the value of each character in the word and taking the remainder when dividing by 27. a is assigned the value 0, b is assigned the value 1 and so on up to z which is assigned the value 25. Based on the calculated remainder the values 0–25 corresponds to a–z as before, and the value 26 corresponds to a space.

Help your friend write a program which takes a coded message and outputs the decoded message.

입력

The first line of the input consists of a single integer T, the number of test cases. Each test case consists of a single line containing a secret message. The secret message contains only lower case characters and spaces, and there are only spaces between words and never two or more consecutive spaces.

  • 0 < T ≤ 100
  • Each secret message contains no more than 1000 characters

출력

For each test case, output the corresponding decoded message.

제한

예제 입력 1

2
a b c d e f
it is late o green wrong whole

예제 출력 1

abcdef
a horse

힌트

출처

Contest > IDI Open Contest > IDI Open 2012 B번

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

출처

대학교 대회

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

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