摘要: HDU 5912 Fraction 给出系数计算一个迭代的公式,反向代入即可。 1 #include <cstring> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 6 const int maxn = 10 阅读全文
posted @ 2018-08-20 18:29 Reqaw 阅读(153) 评论(0) 推荐(0) 编辑
摘要: HDU 2089 不要62 数据量比较小,还是直接暴力吧。 1 #include<stdio.h> 2 int a[1000010]; 3 int F(int m); 4 int main() 5 { 6 int i,sum,n,m; 7 for(i=1;i<=1000000;i++) 8 a[i] 阅读全文
posted @ 2018-08-20 18:00 Reqaw 阅读(202) 评论(0) 推荐(0) 编辑