Problem F

Statement
Copy Copied
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 $${ 1 \leq P \leq 1000 }$$.

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

Input Format:
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 Format:
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.

Note:
None

Submissions

IDLanguageExit CodeTimestampCodeStdoutStderrRetry
4977 cpp 0 2026-03-07T10:27:26.108815Z View View View Retry
4972 cpp 1 2026-03-07T10:22:05.888774Z View View View Retry

Evaluations

Eval IDRun IDProviderModelLangSuccessTimestampPromptResponseStdoutStderrRetry
1714 20260307-080843 openai gpt-5 go false 2026-03-07T09:58:03.65338Z View View View View Retry