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

28373번 - Eszett 스페셜 저지다국어

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

문제

For those trying to learn German, the letter 'ß', called Eszett or sharp S, is usually a source of great confusion. This letter is unique to the German language and it looks similar to a 'b' but is pronounced like an 's'.

Adding to the confusion is the fact that, until a few years ago, only a lowercase version of 'ß' existed in standard German orthography. Wherever an uppercase 'ß' was needed, for example in legal documents and shop signs, it was (and usually still is) replaced by capital double letters 'SS'. In 2017, the capital 'ẞ' was officially introduced into the German language and may now be used in those scenarios, instead.

Other than being confusing for foreigners, the practice of replacing 'ß' with 'SS' also introduces some ambiguity because a given uppercase word featuring one or more occurrences of 'SS' may correspond to multiple different lowercase words, depending on whether each 'SS' is a capitalized 'ß' or 'ss'.

Given one uppercase word, find all the lowercase words that it could be derived from. As the letter 'ß' is not part of the ASCII range, please write an uppercase 'B', instead.

입력

The input consists of:

  • One line with a string $s$ (1ドル \le |s| \le 20$) consisting of uppercase letters.

It is guaranteed that the letter S occurs at most three times in $s$. Note that $s$ need not be an actual German word.

출력

Output all the possible lowercase strings corresponding to $s$. Any order will be accepted, but each string must occur exactly once.

제한

예제 입력 1

AUFREISSEN

예제 출력 1

aufreissen
aufreiBen

예제 입력 2

MASSSTAB

예제 출력 2

massstab
maBstab
masBtab

예제 입력 3

EINDEUTIG

예제 출력 3

eindeutig

예제 입력 4

S

예제 출력 4

s

예제 입력 5

STRASSE

예제 출력 5

strasse
straBe

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > German Collegiate Programming Contest > GCPC 2023 E번

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

출처

대학교 대회

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

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