Codeforces Angry Students – 1287A solution
This problem has denoted a row of students by a string. Where the string contains 2 char ‘A’ and ‘P’ denoting Angry and patients students respectively. Now, the main point every angry student in a row throws a snowball every minute to its next student. Simply put, if a row is like this : As mentioned before each minute any… Read More »Codeforces Angry Students – 1287A solution