시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 256 MB 1395 911 827 67.181%

문제

당신은 길을 가다가 이상한 쪽지를 발견했다. 그 쪽지에는 암호가 적혀 있었는데, 똑똑한 당신은 암호가 뒤집으면 해독된다는 것을 발견했다.

이 암호를 해독하는 프로그램을 작성하시오.

입력

한 줄에 하나의 암호가 주어진다. 암호의 길이는 500을 넘지 않는다.

마지막 줄에는 "END"가 주어진다. (END는 해독하지 않는다.)

출력

각 암호가 해독된 것을 한 줄에 하나씩 출력한다.

예제 입력 1

!edoc doog a tahW
noitacitsufbo
erafraw enirambus detcirtsernu yraurbeF fo tsrif eht no nigeb ot dnetni eW
lla sees rodroM fo drol eht ,ssertrof sih nihtiw delaecnoC
END

예제 출력 1

What a good code!
obfustication
We intend to begin on the first of February unrestricted submarine warfare
Concealed within his fortress, the lord of Mordor sees all
W3sicHJvYmxlbV9pZCI6IjExMzY1IiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiIVx1YmMwMFx1YmU0NCBcdWFlMDlcdWM3N2MiLCJkZXNjcmlwdGlvbiI6IjxwPlx1YjJmOVx1YzJlMFx1Yzc0MCBcdWFlMzhcdWM3NDQgXHVhYzAwXHViMmU0XHVhYzAwIFx1Yzc3NFx1YzBjMVx1ZDU1YyBcdWNhYmRcdWM5YzBcdWI5N2MgXHViYzFjXHVhY2FjXHVkNTg4XHViMmU0LiBcdWFkZjggXHVjYWJkXHVjOWMwXHVjNWQwXHViMjk0IFx1YzU1NFx1ZDYzOFx1YWMwMCBcdWM4MDFcdWQ2MDAgXHVjNzg4XHVjNWM4XHViMjk0XHViMzcwLCBcdWI2MTFcdWI2MTFcdWQ1NWMgXHViMmY5XHVjMmUwXHVjNzQwIFx1YzU1NFx1ZDYzOFx1YWMwMCBcdWI0YTRcdWM5ZDFcdWM3M2NcdWJhNzQgXHVkNTc0XHViM2M1XHViNDFjXHViMmU0XHViMjk0IFx1YWM4M1x1Yzc0NCBcdWJjMWNcdWF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iJcdWM2MDFcdWM1YjQifV0=

출처

High School > University of Virginia High School Programming Contest > UVa HSPC 2014 A번

  • 문제를 번역한 사람: onjo0127
  • 빠진 조건을 찾은 사람: sk7755