Design Tutorial: Inverse the Problem
472D1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 5
Input
30 2 72 0 97 9 0
Output
YES
Sample 2of 5
Input
31 2 72 0 97 9 0
Output
NO
Sample 3of 5
Input
30 2 27 0 97 9 0
Output
NO
Sample 4of 5
Input
30 1 11 0 11 1 0
Output
NO
Sample 5of 5
Input
20 00 0
Output
NO
58%
472D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…