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

34311번 - QWERTY 다국어

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

문제

Riley is a very fast typist. She can easily reach 180ドル$ words per minute (WPM) without looking at the keyboard. Her muscle memory is accustomed to the standard QWERTY keyboard layout (Figure 1). Unfortunately, she didn't realize that the keyboard she was typing on was actually the ABCDEF layout (Figure 2), so her message looks like gibberish.

For example, if her message read visidkmi lvpiis in zhycl, then what she actually wanted to type was colorado school of mines. Note that the space key is in the same position on both keyboards. This example corresponds to Sample Input 1.

Given an arbitrary message, can you figure out what Riley was trying to type?

Figure 1: The standard QWERTY layout that Riley thought she was using. Made with www.keyboard-layout-editor.com.

Figure 2: The ABCDEF layout keyboard that Riley actually used. Made with www.keyboard-layout-editor.com.

입력

The first line of input is an integer, 1ドル \leq N \leq 1,000円,ドル corresponding to the number of characters in the second line.

The second line of input is the text Riley typed with the ABCDEF keyboard. It is guaranteed to contain only the lowercase letters a--z and the space character.

출력

Your output should be a single line: the text Riley was trying to type.

제한

예제 입력 1

24
visidkmi lvpiis in zhycl

예제 출력 1

colorado school of mines

예제 입력 2

43
epc aghvr xdiby niu qgzjl iwcd epc sktf mio

예제 출력 2

the quick brown fox jumps over the lazy dog

힌트

출처

School > CS@Mines > CS@Mines HSPC 2024 O번

  • 문제를 만든 사람: Byron Sharman
(追記) (追記ここまで)

출처

대학교 대회

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

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