Skip to content
bradendubois edited this page Nov 24, 2021 · 8 revisions

Aaah!

ID: aaah

Difficulty: 1.6

CPU Time: 1 second

Memory: 1024 MB

Solution

Since both "ah"s end with 1 single h, the amount of "a"s is simply 1 less than the size of the string, but that is the same for both strings listed, so if the first message is the first line is shorter than the second line, the "aaah" is not long enough, so output "no", otherwise "go".

This is definitely a question with the challenge/lesson being to actually find the relevant information, considering the huge amount of info in the page despite the size of the solution.

Clone this wiki locally