SP2833 SDGAME - Super Dice Game
Description
Alice and Bob are playing a game. The game consists of a circular track of M (2
Input Format
The first line contains R, N, and M each separated by a space. R lines follow. Each line will contain d v a b separated by a space. d indicates the label of the dice rolled. v indicates the value shown on the dice. a and b indicate the range of dice used to determine the move distance.
Output Format
R lines containing the position of the player that just rolled after their roll.