Penguin Steps
2109F3000· legendary gm3s512 MB⌨ stdin/stdout
Examples
Sample 1of 2multi-test • hover to link
Input
42 1 302 21 111013 3 59 2 22 3 22 2 21111110107 3 123 3 3 3 5 1 19 4 8 3 3 5 59 4 8 7 3 3 34 4 4 4 9 4 94 4 4 4 9 4 91 4 4 4 4 4 91 1 4 4 9 9 911111111011111101111111111111111101111000101111115 3 14191219 678 1672 1858 1210535 732 1316 345 2961106 3060 507 216 1943194 2124 47 87 48181007 329 1425 284 6600001010111001011000110100
Output
2 29 53 81943 2426
Sample 2of 2multi-test • hover to link
Input
18 2 2216429 589 675 2022 259 452 733 9671097 2880 256 1894 259 1052 345 692911 831 513 1243 200 14 854 217611 882 681 279 54 719 1469 1885504 2524 1332 17 3113 34 1281 717498 1896 1800 2231 731 364 69 12471397 399 68 448 1337 1076 166 378616 857 91 475 106 102 1517 19490101010000101100000010001010011000001000001000000110001100001000
Output
733 1671
58%
2109F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…