Doremy's Experimental Tree
1764F2500· grandmaster2.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
373 50 2 8
Output
2 3 31 2 2
Sample 2of 2
Input
980819106468081902766 80819037518081902555 8081903540 80819052283090681001 3090681986 3090681775 70836593987083657913 7083658898 7083658687 2092437133 150696177221748216295 1748217280 1748217069 5741194692 749972427 104398211632377558289 2377559274 2377559063 6370536686 1379314421 5028071980 88664661781746983932 1746984917 1746984706 5739962329 748740064 10438588800 5026839617 104484477042341942133 2341943118 2341942907 6334920530 1343698265 4992455824 8830850022 4991223461 9115779270
Output
1 2 9852 3 2112 4 9982443532 5 9982448534 6 6712323536 8 12323634 7 3565613567 9 35616156
58%
1764F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…