Problem Description
Loading...
Problem Analysis
At first glance this looks like a very troublesome problem.
But the advantage of a Special Judge
is that any output satisfying the statement is accepted.
So we only need to find one valid group among the four and output it.
If none exists, output -1.
cpp
| |
Problem address: 【CodeForces】[366A]Dima and Guards