#K45917. Laboratory Experiment Allocation
Laboratory Experiment Allocation
Laboratory Experiment Allocation
You are given three integers n, m, and c, where n represents the number of experiments, m represents the number of laboratories, and c represents the maximum capacity of experiments that each laboratory can handle. Your task is to determine whether it is possible to allocate all n experiments among the m laboratories such that no laboratory handles more than c experiments.
The allocation is possible if and only if the following condition holds:
$$ n \le m \times c $$
If the condition is satisfied, output POSSIBLE
; otherwise, output IMPOSSIBLE
.
inputFormat
The input is given from stdin as a single line containing three space-separated integers:
- n: the total number of experiments.
- m: the number of laboratories.
- c: the maximum experiments one laboratory can handle.
outputFormat
Output a single line to stdout containing the string POSSIBLE
if the experiments can be allocated without exceeding the laboratory capacities. Otherwise, output IMPOSSIBLE
.
10 3 4
POSSIBLE