Register
|
Login
HOME
PROBLEMSET
ROADMAP
COMPETITION
TOPIC
RANKING
GUIDE
MASHUP
ABOUT
CONTACT
Problem
Submit
Results
Digit sum - MarisaOJ: Marisa Online Judge
Digit sum
Time limit: 1000 ms
Memory limit: 256 MB
Given a string
S
S
consisting of digits. Calculate the sum of the digits in
S
S
. ### Input - A single line containing the string
S
S
. ### Output - Print the sum of the digits. ### Constraints -
1
≤
|
S
|
≤
1000
1
≤
|
S
|
≤
1000
. ### Sample test
12345
12345
Output:
15
15
String
Length
Word Count
lowercase
Vowel
Digit sum
Strong password
Letter frequencies
Palindrome string
Palindrome substring
Caesar cipher
String occurences
Sum
String normalization
Run-length encoding
Expression
Topic
Basic
Rating
800
Solution (0)
Solution