B. Fedor and New Game
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
After you had helped George and Alex to move in the dorm, they went to help their friend Fedor play a new computer game «Call of Soldiers 3».
The game has (m + 1) players and n types of soldiers
in total. Players «Call of Soldiers 3» are numbered form 1 to (m + 1).
Types of soldiers are numbered from 0 to n - 1. Each player
has an army. Army of......
阅读全文