Last active
March 15, 2024 11:26
-
-
Save waynejo/905786f295f4cc1786e2e045088f1787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@main def solve1_2(): Unit = | |
val initial = 11 | |
val increasingCount = 8 | |
val input = 102 | |
val count = (input - initial) / (increasingCount - 1) | |
println(count * increasingCount + initial) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment