## Editorial for Mock CCC '24 Contest 1 J2 - Simple Elo Rating System

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:

This problem asks you to simulate Alice and Bob's Elo ratings throughout the games they played. The intended solution was to iterate through the games and simulate each round. If the current game is a `W`

, you set Alice's score to , if it is a `T`

, you set Alice's score to , and if it is an `L`

, you set Alice's score to . We can then calculate Alice's new rating with the given formula score , and then calculate the difference from Alice's previous score to add to Bob's current score.

**Time Complexity:**

## Comments