mndogdied @ 2024-10-20 17:48:14
大概原理如下:
首先,写一段正确代码,将求解方法写成函数,
然后for循环将每个数值的表都打出来,
注意3100000*500==15.5亿,
将头文件及正确代码写进文件里去,
将其后缀名改为.cpp
查表时间复杂度 O(1),保证能过此题
by liruizhou_lihui @ 2024-10-20 17:49:38
@mndogdied 代码长度超过一千kb,保证交不上去
by mndogdied @ 2024-10-20 17:51:17
@liruizhou_lihui 鳄鳄鳄
by mndogdied @ 2024-10-20 17:53:08
更正一下:
查表时间复杂度 O(500)
by EmptyAlien @ 2024-10-20 17:53:37
而且编译出来文件太大会被洛谷评测姬ban掉
by Texas_the_Omertosa @ 2024-10-20 18:00:34
@mndogdied 一般就写成
by QwQlaoda @ 2024-10-25 00:08:16
你是打表战神吗这么玩
by mndogdied @ 2024-10-25 17:23:51
@QwQlaoda 我是传奇表王温炫皓