[UVA][Legendre Symbol] 10831 - Gerg's Cake
Problem B
Gerg’s Cake
Input: Standard Input
Output: Standard Output
Gerg is having a party, and he
has invited his friends. p of them have arrived already, but a
are running late. To occupy his guests, he tried playing some team games with
them, but...