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

33772번 - Wow 서브태스크다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB106907985.870%

문제

While Mr. Malnar was traveling by bus to Graz, he noticed that other passengers were looking at his phone and reading the messages he was sending to Patrik. Mr. Malnar decided to put an end to this. Therefore, together with Patrik, he developed a new way of encrypting their messages, which they call the VolksWagen cipher.

The received message can be imagined as a table of characters with 2ドル$ rows and $n$ columns. Each letter spans all 2ドル$ rows and several columns, and they are separated by spaces. The appearance of letters in the message can be seen in the sample test cases.

The letter 'v' is represented as follows:

\../
.\/.

The letter 'w' is represented as follows:

\../\../
.\/..\/.

From now on, Patrik and Mr. Malnar will communicate exclusively using the letters 'v' and 'w' (without quotes). However, Mr. Malnar is having trouble reading these messages. He has asked you to help him decipher the message he received. Of course, he has not revealed to you how to decrypt their cipher.

입력

The first line contains a positive integer $N$ (1ドル ≤ N ≤ 1000$), the number of columns in the message.

In the next 2ドル$ rows, there are $N$ characters each, representing one row of the message. It is guaranteed that empty columns will be exactly between two different letters, and there will be exactly one empty column between two letters. (An empty column is considered to be one that contains only the character '.'.)

출력

In a single line, print the letters that appear in the message in order.

제한

서브태스크

번호배점제한
121

The message consists of a single letter.

213

All letters in the message will be the same.

316

No additional constraints.

예제 입력 1

32
\../.\../\../.\../.\../.\../\../
.\/...\/..\/...\/...\/...\/..\/.

예제 출력 1

vwvvw

예제 입력 2

27
\../\../.\../\../.\../.\../
.\/..\/...\/..\/...\/...\/.

예제 출력 2

wwvv

힌트

출처

Contest > Croatian Open Competition in Informatics > COCI 2024/2025 > Contest #5 1번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

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

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