Calculating 9999999999 (99999 power 99999) on Python and Ruby
Testing Environment
- Windows 2000, RAM 512, CPU 1.6 Celeron Mobile
- Python 2.6.1 and ruby 1.9.1
Python
(99999**99999)/(99999**99999)
6 seconds
Ruby
(99999**99999)/(99999**99999)
45 seconds
Python is fast on that thing.
ps# Both Python & Ruby fail to output on screen so I test like this (99999**99999)/(99999**99999) instead of 99999**99999
၅၅ နှစ်ပြည့် မင်္ဂလာ ...
5 years ago
No comments:
Post a Comment