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

21347번 - Keyboardd 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB30919517062.271%

문제

Oh no! Joanna just spilled some syrup on her keyboard and now some of the keys are sticky. This causes her considerable frustration, as every time she presses one of the sticky keys, the corresponding character gets entered twice on her computer.

This could not have happened at a more inconvenient time; it is the start of the contest and she was just about to type in the solution to the first problem! Joanna does not have time to remove and clean every key on her keyboard, so she wonders if there is a way to quickly identify the sticky keys. Starting to panic, she quickly types some text on her keyboard and stares at the resulting text displayed on her screen.

Given the line of text that Joanna typed on her keyboard and the resulting text displayed on her screen, help her determine which keys must be sticky.

입력

The input consists of:

  • One line containing a string $s$ (1ドル \leq \mathrm{length}(s) \leq 1,000円$), the text that Joanna typed on her keyboard.
  • One line containing a string $t$ (1ドル \leq \mathrm{length}(t) \leq 1,000円$), the text displayed on Joanna's screen as a result.

Both $s$ and $t$ consist only of lower-case letters (`a'--`z') and spaces (`'), and start and end with a letter.

It is guaranteed that $t$ is the result of doubling each character in $s$ that corresponds to a sticky key. At least one character in $s$ corresponds to a sticky key (i.e.\ $s \neq t$).

출력

Output all characters (letters and space) corresponding to keys that must be sticky, in any order.

제한

예제 입력 1

this is very annoying
thiss iss veery annoying

예제 출력 1

se

예제 입력 2

so sticky
ssoo ssttiicckkyy

예제 출력 2

its yock

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > NWERC 2020 K번

  • 문제를 만든 사람: Pehr Söderman
(追記) (追記ここまで)

출처

대학교 대회

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

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