시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 (추가 시간 없음) | 1024 MB | 180 | 135 | 115 | 76.667% |
This is not a problem about Brexit. Or at least not about the social or economic implications of Brexit. Instead, we -- the Grammatical Correctness Policing Committee (GCPC) -- want to focus exclusively on the linguistic challenges posed by this combination of the words "Britain" and the noun "exit". We are very concerned about the ambiguity of this construction. When using the term Brexit, it is not clear at all whether it is supposed to refer to to Great Britain or Brazil. Or perhaps Bremen leaving the Bundesliga.
And it's not just Brexit, you might also have heard of "Megxit" (having to do something with the British royal family) and similar constructions.
Looking ahead, we want to avoid a similar disaster in the future. For that purpose we, as a European agency with German roots, would like to implement some standardisation. We have focused on the act of entering. If a subject (a person, an organization, a plant, etc. ) enters (or possibly reenters) something, our leading linguistic scientists suggest we look for the last vowel in the subjects name (a
, e
, i
, o
and u
are considered vowels). We cut off any letters after this last vowel and add the ending ntry
instead. Here are some examples:
Given a subject's name, determine how the act of entering should be called for this subject.
1We are convinced this is going to happen, because Brexit must have been such a joy for the people of Britain (otherwise, their political leaders certainly would not have taken this step). When something brings so much joy to everybody, you want to repeat it. But to repeat Brexit, there has to be Britaintry first!
The input consists of:
All characters in $s$ are uppercase letters A
-Z
or lowercase letters a
-z
. The first letter may be uppercase or lowercase, all other letters are lowercase. $s$ will contain at least one lowercase vowel.
Output one single word, the term for the act of the subject entering.
Britain
Britaintry
Canada
Canadantry
Paul
Pauntry
ICPC > Regionals > Europe > Northwestern European Regional Contest > German Collegiate Programming Contest > GCPC 2021 B번