摘要: 顺便这道题http://cogs.pro/cogs/problem/problem.php?pid=279,我调了一上午+半个下午,居然是因为可并堆打错了。。。 阅读全文
posted @ 2017-08-16 15:10 p0ny 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 已知: \[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) 编辑
摘要: A.模拟 1 #include<cstdio> 2 #include<iostream> 3 using namespace std; 4 5 inline void read(int &ans) { 6 static char ch = getchar(); 7 register int neg 阅读全文
posted @ 2017-05-08 02:21 p0ny 阅读(114) 评论(0) 推荐(0) 编辑
摘要: dp 阅读全文
posted @ 2017-04-29 16:35 p0ny 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Hello! 阅读全文
posted @ 2017-04-29 15:45 p0ny 阅读(147) 评论(0) 推荐(0) 编辑