Skip to content
bradendubois edited this page Jun 9, 2021 · 6 revisions

Riječi

ID: rijeci

Difficulty: 1.6

CPU Time: 1 second

Memory: 1024 MB

Solution

One starts the tally of a to 1, and b to zero. Looping K times, one stores a in a temporary variable, sets a to b to reflect the transformation of a to bs, and adds the original number of as that were shown to b. The example/description is not very clear relaying this.

Clone this wiki locally