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

5365번 - Decoder 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB57046141581.213%

문제

All the Sith messages are sent using a complex coding scheme. You have cracked their code and must write a program to decode coded messages. Their code works as follows. Each word in the coded message represents one letter in the decoded message. Use the first letter of the first word and for each subsequent word use the nth letter where n is the length of the previous word. If the previous word is longer than the current word the current word represents a “space” (i.e., a blank space).

Here are two example:

Coded Message Decode Message
A Tree
Some one too a sas
AT
S o s

입력

A positive integer, n, on the first line. After the first line there will be n words that represent the coded message.

출력

The decoded message on one line.

제한

예제 입력 1

10
Give Solo a total Naboo map DEV reject bateau German

예제 출력 1

Go to Vjun

힌트

출처

School > PLU High School Programming Contest > PLU 2011 > Advanced 4번

School > PLU High School Programming Contest > PLU 2011 > Novice 7번

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

출처

대학교 대회

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

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