为什么在主函数中判断是否为素数会超时,而将判断素数的代码封装成函数来调用就AC了?代码基本不变,封装成函数速度会更快吗?
AzeQ LV 8
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account