Editorial for TSOC '15 Contest 2 #1 - The Code


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: bobhob314

The problem is very simple. Simply store the integers in order in an array, and apply the given rules, I used a string containing every letter in order but ASCII values could be used as well. Make sure that the program terminates whenever it lands on a zero.


Comments

There are no comments at the moment.