report VI VI EN
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$ consisting of digits. Calculate the sum of the digits in $S$. ### Input - A single line containing the string $S$. ### Output - Print the sum of the digits. ### Constraints - $1 \le |S| \le 1000$. ### Sample test ``` 12345 ``` Output: ``` 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