为什么f开到[25][25][25]

P1464 Function

__youzimo2014__ @ 2023-12-22 16:36:08

有没有大佬知道为什么其他讨论(包括题解)都是f数组开到f[25][25][25]?而不是9223372036854775807?


by Zichen123 @ 2024-07-10 23:11:39

w(9223372036854775807,9223372036854775807,9223372036854775807)=2^9223372036854775807


by Zichen123 @ 2024-07-10 23:15:47

2^9223372036854775807≈100000.......0000(2916686334356757942个0)


by Zichen123 @ 2024-07-10 23:16:47

所以开高精也要开a[2916686334356757942]


by Zichen123 @ 2024-07-10 23:17:45

逆天复杂度+逆天空间+逆天位数=不可能


by Zichen123 @ 2024-07-10 23:18:37

所以以后发现问题时先考虑自己思考的方向合不合理


上一页 |