Average Character
Statement
Goal
Given an input string s, return the character given by the average of the ASCII values of all characters in the string.s can contain any ASCII characters, upper case letters, lower case letters, spaces or symbols.
If the average value is a float, round down (floor).
Input
Line 1: integer len_s - length of s
Line 2: string s - the string to find the average ASCII value of.
Line 2: string s - the string to find the average ASCII value of.
Output
the character associated with the average ASCII value of the string s
Constraints
1 <= len_s <= 50
Example
Input
5 hello
Output
j
Game modes
Fastest, Shortest
Test cases
hello Test
Input
5
hello
Output
j
hello world Validator
Input
11
hello world
Output
e
MiXeD cAsE Test
Input
11
HeLlO wOrLd
Output
V
MiXeD cAsE Validator
Input
43
The Quick Brown Fox Jumps Over The Lazy Dog
Output
X
Not Just Letters Test
Input
11
H3LL0 W0RLD
Output
A
Not Just Letters Validator
Input
43
Th3 Qu1ck Br0wn F0x Jump5 0v3r Th3 L4zy D0g
Output
L
Bit Random Test
Input
30
e$rF^GbSw#jO(8bBnJ2DL0ReB2WmQ6
Output
M
Bit Random Validator
Input
50
HF$Y(#YFfgi6eFBEHFgfd3r3gf3obn9ft#FG#IFQIhq93ftg3p
Output
P
Solution language
Solution
Stub generator input