| acmsguru |
|---|
| Finished |
). Each of the following k lines describes one marked cell and contains two integer numbers xi and yi that are row and column indices (1 ≤ xi ≤ n, 1 ≤ yi ≤ m). YES", otherwise output "
NO" (quotes for clarity).
sample input | sample output |
4 4 4 1 1 4 1 1 4 4 4 | YES |
sample input | sample output |
4 4 3 1 1 4 1 1 4 | NO |
| Name |
|---|


