摘要: 已知: \[f(1)=1\] \[f(n)=(n-1)f(1)+(n-2)f(2)+\cdots +f(n-1)\] 求第n项的数 题解: 推一推,可以推出 于是 然而。。蒟蒻不会写资辞负数的高精度 所以乱搞搞 高精度搞搞就好了 1 #include<cstdio> 2 #include<iostr 阅读全文
posted @ 2017-05-13 22:48 p0ny 阅读(149) 评论(0) 推荐(0) 编辑
摘要: A 膜你 1 #include<cstdio> 2 #include<iostream> 3 using namespace std; 4 5 int main() { 6 int a, b, c, n, ans = 0; 7 scanf("%d %d %d", &a, &b, &c); 8 sca 阅读全文
posted @ 2017-05-13 20:58 p0ny 阅读(264) 评论(2) 推荐(0) 编辑
摘要: A 一个if(但是我太弱了 写了一个迷之dfs 1 #include<cstdio> 2 #include<cmath> 3 #include<iostream> 4 using namespace std; 5 6 int ans1, ans2; 7 int t1, t2; 8 int n, t, 阅读全文
posted @ 2017-05-13 20:56 p0ny 阅读(111) 评论(0) 推荐(0) 编辑