Submit solution
Points:
0 (partial)
Time limit:
2.0s
Memory limit:
256M
Author:
Problem type
Allowed languages
Ruby
The evil Ruby overlord has taken you hostage. He agrees to let you go, but only if you are able to solve his puzzle:
Write me a Ruby program that reads a string from STDIN, and outputs its length to STDOUT. You can only use symbolic characters in your code (
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
). In addition, your source code must be as short as possible.
Note: You may only submit to this problem in Ruby.
Input Specification
The first line of input contains a single string . You may assume that only contains printable characters.
Output Specification
Output on a single line, the length of .
Scoring
Your score will be computed based on the length of your source code, the shorter the better. For an -byte program,
- if , you will receive the full points.
- if , you will receive points.
- if , you will receive points.
Sample Input
Hello, World!
Sample Output
13
Comments