Back
Close

ASCII Math

Statement

 Goal

You are given a single string. You need to convert each character into it's ASCII value and add the odd numbers together.

Example
Input: ABC
A,B,C → 65,66,67
Take odd numbers
65+67=132
Input
Line 1: A string word of length N whose odd characters need to be summed
Output
Line 1: The sum of odd character values in word
Constraints
0 < N ≤ 100
Example
Input
ABC
Output
132

Game modes
Fastest, Shortest

Test cases
Test 1 Test
Input
ABC
Output
132

Validator 1 Validator
Input
CBA
Output
132

Test 2 Test
Input
CodinGame
Output
661

Validator 2 Validator
Input
GameCodin
Output
661

Test 3 Test
Input
N0t_Y0ur_N0rm4l_5tR1nG?!
Output
869

Validator 3 Validator
Input
N0tY0urN0rm4l5tR1nG?!___
Output
869

Test 4 Test
Input
Just another Test.
Output
757

Validator 4 Validator
Input
.Just another Test
Output
757

Solution language

Solution

Stub generator input