Diagnostic Test 2016 Level 2

Problem 1: Polan cannot into space

It is common knowledge that Polska's space program is extremely lacking. However, despite the concerted effort of intelligence agencies around the world, no one knows why polan cannot into space. The truth is, Polska has been hiding a terrible secret for many years: he is very bad at math!

Today, he is being tested in addition at the Jagiellonian University. The professor will dictate a list of one digit numbers, which will end when he says "No more numbers." Help Polska pass his math test, by outputting the correct sum, as an integer.

Sample Input

one
three
nine
five
six
zero
No more numbers.

Sample Output

24

All Submissions
Best Solutions


Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 13, 2016
Author: Cynthia

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

It's quiet in here...