Easy Demon Problem
2044F1900· candidate master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 3 6-2 3 -3-2 2 -1-11-22-33
Output
NOYESNONOYESNO
Sample 2of 2
Input
5 5 61 -2 3 0 00 -2 5 0 -34-352-12
Output
YESYESYESYESNOYES
58%
2044F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)