| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 300 | 249 | 223 | 84.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.
2 mean word
rjii
4 words of various length
rfpfrns
3 a b b
a
University > University of Alberta Programming Contest > UAPC 2023 > Division 1 H번
University > University of Alberta Programming Contest > UAPC 2023 > Division 2 I번