一条矿道上依次埋着 n 块矿石,第 i 块的能量值为 ai。对于一段连续矿段 b(即原序列的一个非空连续子数组),定义:
约定 gcd(0,x)=x(对任意 x 成立)。请选出一段连续矿段,使得 f(b)×g(b) 最大,并输出这个最大值。
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.