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

3301번 - FATBOY 스페셜 저지다국어

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

문제

Mirko is, as we know, happily married. During the last month he gained 70 pounds. Because of all the fat stored in his fingers, he has a hard time writing e-mails to his old friend Slavko whom he has not forgotten.

Every night Mirko describes in detail all the things he has eaten on that day, but sometimes he presses more than one key when he only wanted to press one. Every of those accidentally pressed keys can be any key on the keyboard, including the desired key, the keys may repeat and, since Mirko has already gotten used to his disability, the number of accidentally pressed keys along with the desired one will not be more than three.

After he received multiple unreadable e-mails, Slavko asked Mirko to always send e-mail three times so that he can understand it more easily.

Write a program that will help Slavko to determine the longest possible text that Mirko could of written, based on the three e-mails he received.

입력

The input file contains 3 lines of text.

Each of those lines contains one version of Mirko's text. The only characters contained will be non-capital letters of the English alphabet and there won't be more than 100 of them.

출력

The first and only line of the output data should contain the longest possible text that Slavko could determine from the received e-mails.

Note: There will always be a solution, but not necessarily a unique one.

제한

예제 입력 1

jueha
judbhak
jukhxa

예제 출력 1

juha

예제 입력 2

asaermxvqav
scanrmab
tstamrmhaqu

예제 출력 2

sarma

예제 입력 3

cecqbhvaiaedpibaluk
cabegviapcihlaaugck
adceevfdadaepcialaukd

예제 출력 3

cevapiluk

힌트

출처

Olympiad > Croatian Highschool Competitions in Informatics > 2001 > Final Exam #2 2번

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

출처

대학교 대회

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

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