-
Notifications
You must be signed in to change notification settings - Fork 2
whichbase
bradendubois edited this page Oct 7, 2021
·
7 revisions
ID: whichbase
Difficulty: 2.6
CPU Time: 1 second
Memory: 1024 MB
For this, using a language that lets you easily convert bases will help a lot. Any of the inputs can be interpreted as hex, so those can just be converted. If the string contains an 8 or 9, it could not possibly be an octal number, and so that can be detected and output as 0 instead.