Launching Wayne's Automated Height Calculation

# Introduction In this challenge, we will be working with a "Free Spring" that launches Wayne to a certain height. The spring has a mechanism that automatically launches Wayne to a height that is the square of the initial height. However, if the height exceeds a certain limit, it is reduced to ensure safety. Our task is to determine the height to which Wayne will be launched for the last time, considering the initial height and the number of launches.This challenge requires you to have a basic understanding of integer calculations and exponentiation in Java, as well as understanding the calculation process of fast modular exponentiation.

|60 : 00

Click the virtual machine below to start practicing