Problem Description
Loading...
Problem Analysis
The problem asks us to
read W from the input
and then print two numbers N and M
where N is odd, M is even, and M must be as small as possible
From the statement and some math, we know
an odd number always prints “Impossible”
for an even number
we can simply brute-force
and then check each candidate
cpp
| |
Problem link: [Light] [1116] Ekka Dokka