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

31663번 - Mean Words 다국어

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

문제

Little Timmy got caught by his teacher using some mean words. After getting sent to the principal, little Timmy learned his lesson - he should do his best to not get caught next time!

What Timmy decided to do is to take all the mean words that he wants to say, and combine them all together into a single "mean" word by getting the average of all the characters in the same position across all the words that have a character in that position, and then rounding this average down to get the character in that position.

Note: The value of a character is its ASCII value, so the value of a is 97ドル,ドル the value of b is 98ドル$ and so on up to z, which has value 122ドル$. So when we average characters, we are averaging their ASCII values, rounding this down to the nearest integer, and then using the corresponding character as the result of this averaging.

Help Timmy create his mean mean words!

입력

The first line contains a single integer $N$ (2ドル \leq N \leq 1,円 000$), which represents the number of words that follow. The next $N$ lines contain a single word between 1ドル$ and 45ドル$ lowercase English characters each.

출력

Output the mean word obtained by following Timmy’s procedure.

제한

예제 입력 1

2
mean
word

예제 출력 1

rjii

예제 입력 2

4
words
of
various
length

예제 출력 2

rfpfrns

예제 입력 3

3
a
b
b

예제 출력 3

a

힌트

출처

University > University of Alberta Programming Contest > UAPC 2023 > Division 1 H번

University > University of Alberta Programming Contest > UAPC 2023 > Division 2 I번

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

출처

대학교 대회

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

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