
线性递推式
Error Man
我是菜逼
展开
-
2017 ICPC 南宁 ,Twice Equation (线性递推 + 大数)
Twice Equation For given L, find the smallest n no smaller than L for which there exists an positive integer m for which 2m(m + 1) = n(n + 1). Input This problem contains multiple test cases. The f...原创 2018-09-23 15:53:12 · 547 阅读 · 0 评论 -
HDU 6222 Heron and His Triangle ( 2017 ICPC沈阳, 线性递推 + 大数)
Heron and His Triangle A triangle is a Heron’s triangle if it satisfies that the side lengths of it are consecutive integers t−1, t, t+ 1 and thatits area is an integer. Now, for given n yo...原创 2018-09-23 15:31:38 · 566 阅读 · 0 评论 -
求线性递推式 系数
对于一个暴力打出的表,感觉是线性递推式, 可设 F[n] = a * F[n-1] + b * F[n-2] + c * F[n-3] + d ...... /// 不够的时候,可在多递推几位 暴力枚举 四重for a, b, c, d 从负数开始枚举 , 然后判断 与自己打的表 ... ...原创 2018-09-21 22:29:52 · 553 阅读 · 0 评论