Preparando MOJI

Marmots (hard)

2000ms 262144K

Description:

Your task is the exact same as for the easy version. But this time, the marmots subtract the village's population P from their random number before responding to Heidi's request.

Also, there are now villages with as few as a single inhabitant, meaning that .

Can you help Heidi find out whether a village follows a Poisson or a uniform distribution?

Input:

Same as for the easy and medium versions. But remember that now 1 ≤ P ≤ 1000 and that the marmots may provide positive as well as negative integers.

Output:

Output one line per village, in the same order as provided in the input. The village's line shall state poisson if the village's distribution is of the Poisson type, and uniform if the answers came from a uniform distribution.

Informação

Codeforces

Provedor Codeforces

Código CF802F

Tags

mathprobabilities

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 09:14:55

Relacionados

Nada ainda