xhdxhl   2년 전

입력

The first line of the input gives the number of test cases, T. T lines follow, each one containing the name of one country. Country names will consist of only lower case English letters, starting with a capital letter. There will be no other characters on any line, and no empty lines.

->

The first line of the input gives the number of test cases, T. T lines follow, each one containing the name of one country. Country names will consist of only lower case English letters, except last letter, starting with a capital letter. There will be no other characters on any line, and no empty lines.

마지막 글자에도 대문자가 들어올 수 있으나 지문에 정보가 없어 틀리게 됩니다. 수정 부탁드립니다.

Green55   2년 전

assert로 확인해본 결과 마지막 글자가 대문자인 경우는, 문자열의 길이가 1인 경우 뿐입니다. 따라서 원래 지문도 문제가 없습니다.

댓글을 작성하려면 로그인해야 합니다.