SP25450 PONY10 - When Does The World End
Description
There is a recently discovered ancient temple, and Daring Do is already exploring it. She's come across an old Artifact of Power, which just seems to be spouting meaningless numbers. "...82980644837721883829806448..."
Reading the inscription on the wall, it gives an explanation to the artifact:
WE HAVE TAPPED INTO THE UNIVERSAL LIFE FORCE.
WE HEAR THE CLOCK TICKING TOWARD THE END.
CAN YOU HEAR IT?
WHEN THE PROPHESIED NUMBERS ARE SAID THE FORETOLD NUMBER OF TIMES
IT ENDS.
Daring Do doesn't know the prophesied numbers or foretold count, so she moves on with exploring.
She gets more clues while exploring:
- The artifact began counting at the beginning of time, starting from 0 and going up 1 step at a time, saying each digit individually. So when it first began, it went "0123456789101112131415...". Each second, it says the next digit. This means at time t=0, it said "0", at time t=1, it said "1", etc.
- The universe will end not on the tick after the prophesied number is said for the final time, it ends on the tick that the prophesied number begins. For instance, if the prophesied numbers were "01", and the foretold number of times were "2", then the universe would end at time t = 11. See below for more examples.
- She's found different things which could be the prophesied numbers, or the foretold number of times, but she's not sure.
Please help her figure out the life time of the universe, if the given pair of a 'foretold count' and 'prophesied numbers' were the true ones. But, if you take too long, the world might end before you figure it out!
Input Format
N/A
Output Format
N/A