当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
1 5 1 2 3 4 5 1 2 3 2 3 5 5 4
12 12 0 0 0
Hint | For the route (2,1) the number of the participants is 3.The game performs like this: (1,1,1) → (2,1) → (3) and the game is over. F(p(2,1)) = F(3) = 0.For the route (5,1) the number of the participants is 8. The game performs like this: (1,1,1,1,1,1,1,1) → (2,1,1,1,1,1,1) → (3,1,1,1,1,1) → (2,2,1,1,1,1) → ...... (2,2,2,2) → (4,2,2) → (3,3,2) → (3,1,4) → (4,1,3) → (2,3,3) → (2,2,4) → (4,2,2) → (3,3,2) → ......So F(p(5,1)) = F(8) = 6. |
时间上限 | 内存上限 |
16000/8000MS(Java/Others) | 524288/524288K(Java/Others) |