Array and Permutation
2197B1100· newbie1.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
631 2 31 2 243 1 2 43 4 2 251 3 2 5 43 3 3 5 473 7 4 2 1 6 53 3 4 4 5 6 571 2 3 4 5 6 77 7 7 7 7 7 771 3 2 7 5 4 62 2 7 7 7 5 6
Output
YESNOYESNOYESYES
58%
2197B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)