Back
Close

Just an average ordinary puzzle

Statement

 Goal

You must output the average of the ASCII values of the characters in a given string
Input
Line 1 A string s to get the ASCII values from
Output
Line 1 The Average of all the ASCII values in the given string, rounded to one decimal point
Constraints
1 ≤ length of s ≤ 1000
Example
Input
abc
Output
98.0

Game modes
Fastest, Shortest

Test cases
Easy Test
Input
abc
Output
98.0

Validator 1 Validator
Input
bac
Output
98.0

Less Easy Test
Input
Less Easy
Output
93.4

Validator 2 Validator
Input
Validator Easy
Output
97.7

Ordinary Difficulty Test
Input
This one is a bit more difficult, it's making me ANGRY ^$$%)%*+_&&$#~{}
Output
80.8

Validator 3 Validator
Input
Just do a bunch of words, while also adding in some symbols and spaces %&**&$^@!&*$()(||
Output
84.0

Not Your Average Test Case Test
Input
dbvg7891cvtr761239v3r679v3 v%@^!8923v %! &IVFR<IKSD@ ! 56@Iv127i 6r 2r6I @&I 37ki@ ^<35626372 568o!&% ^*O$%IO dyhU*BY&3b Y#&7128odhwu 18bduw 1gd dy71gie 82gd8o1&*W *Y#&*ERG 38&O &*OB R38b 78B *&o387o P()1 h8013h* 8(!P@#8y9p3 [3 ur0{I ))}_ 390 (U#0]8390ruj r982yrh78DB#&@* @#(_u920=3902u8 df32(+ 3iD+#* df3j8 @(_
Output
64.5

Validator 4 Validator
Input
7*D( #278q9tyd279hc d7829 rh90PY *(PR (@h3&*(PN F*#(PN*( n@*P( H#*R(P32892[p3u {#(@U )[ 3829077r8932yrhf8hyf789-[ fh8(_ [ry3*(HJ *9h( JNDN 89cn89j 89 3898j 89 89 hjj289fj2h6y82bf6 b36gdfsyubfh p78329j fyb 3rfupFJ iPjjjjjjjjjj f8h3w89qf y732h fe829 ijf 2i93f2[] fie927defh 739425
Output
70.1

Solution language

Solution

Stub generator input