![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CodeForces
文章平均质量分 65
tintinsnowy
这个作者很懒,什么都没留下…
展开
-
CodeForces 245H (区间dp)
题目链接:点击打开链接 题目分析:这是区间dp的模板题 通过容斥原理很容易得出结论 dp [ l ][ r ] = dp [l+1 ][ r ] + dp [ l ][ r-1 ] -dp [ l+1 ][ r-1 ]; 在用记忆化搜索的解 #include #include #include原创 2013-09-02 16:15:22 · 1037 阅读 · 1 评论 -
codeforces #230 (Div. 2) B(简单数学)
题目链接:点击打开链接 题目大意:a+b矩阵成为w,a为对称矩阵,b为关于主对角线互为相反数 题目分析:一来想到的是枚举法……会T,所以仔细一想 x+y=a; x-y=b; 求解x,y吗 #include #include #include #include #include double a[200][200],b[200][200],w[20原创 2014-02-19 15:02:01 · 881 阅读 · 0 评论 -
Codeforces Round #230 (Div. 2) problem A(小算数)
题目链接:点击打开链接 题目分析:求一串字符中nineteen的个数 注意:n,i,t,e的数量关系 #include #include #include #include #include using namespace std; char str[105]; int length; int find (char c)//统计字符c出现的次数 { int count=0;原创 2014-02-19 15:05:19 · 602 阅读 · 0 评论 -
Codeforces Round #230 (Div. 2) C (Div. 1)
C. Blocked Points time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Imagine you have an infinite 2D plane wit转载 2014-02-19 16:02:52 · 639 阅读 · 0 评论 -
Codeforces Round #241 (Div. 2) A
代码:#include #include #include #include #include #include using namespace std; int main() { int n,x,l,r; char tag[5],yn[5]; while(scanf("%d",&n)!=EOF) { r =2原创 2014-04-14 18:21:05 · 530 阅读 · 0 评论 -
codeforces 426B - Sereja and Mirroring
题目链接:点击打开链接 题目分析:简单dui cheng原创 2014-05-01 21:33:15 · 758 阅读 · 0 评论 -
415A Mashmokh and Lights
题目链接: 题目原创 2014-04-07 19:30:33 · 752 阅读 · 0 评论 -
415B - Mashmokh and Tokens
题目链接:点击打开链接 题目分析:每天给x张券,原创 2014-04-07 20:43:07 · 675 阅读 · 0 评论