Construct an Array (Easy Version)
2245D14s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
61 11 1 11 12 1 12 31 1 11 1 21 2 22 31 1 11 2 22 1 23 61 1 11 1 21 1 32 2 22 2 32 3 33 62 1 11 1 22 2 31 3 31 2 22 1 3
Output
YES0YES-1YES0 0NOYES1 -1 -1NO
58%
2245D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…