Dima and Trap Graph
366D2000· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 41 2 1 102 4 3 51 3 1 52 4 2 7
Output
6
Sample 2of 2
Input
5 61 2 1 102 5 11 201 4 2 51 3 10 113 4 12 100004 5 6 6
Output
Nice work, Dima!
58%
366D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…