Reindeer Games
1615H3000· legendary gm2s256 MB⌨ stdin/stdout
#binary search#constructive algorithms#data structures#divide and conquer#flows#graphs#shortest paths
Examples
Sample 1of 3
Input
7 63 1 4 9 2 5 61 22 33 44 55 66 7
Output
1 1 4 4 4 5 6
Sample 2of 3
Input
4 66 5 8 23 14 13 21 22 33 1
Output
6 6 6 2
Sample 3of 3
Input
10 18214 204 195 182 180 176 176 172 169 1671 23 24 25 26 27 28 29 210 26 16 26 36 46 56 76 86 96 10
Output
204 204 195 182 180 167 176 172 169 167
58%
1615H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…