Solving 'The Python Challenge' with Ruby
Level 0 - warming up
As I'm learning Ruby, the most efficient way is practice. Therefore, I try to solve the The Python Challenge using Ruby. Here is the level 0 - warming up . In the webpage, a picture is shown:
Obviously, solving the calculation can get the answer. So I execute the following command:ruby -e "puts 2**38"
and I get:274877906944
Therefore, the URL of the next level is here.
No comments:
Post a Comment