Acyclic Organic Compounds
601D2400· grandmaster3s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
101 2 7 20 20 30 40 50 50 50cacabbcddd1 26 87 26 25 45 93 102 52 3
Output
513
Sample 2of 2
Input
60 2 4 1 1 1raaaba1 22 32 42 53 6
Output
62
58%
601D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…