10 2015 档案

摘要:OJ1001A+B Problem: a+b。#includeusing namespace std;int main(){ int a,b; cin>>a>>b; cout1时,第一个方程的解可以是所有偶数,转化为x = 0(mod 2)。 考虑第二个方程, ... 阅读全文
posted @ 2015-10-25 15:54 iamCYY 阅读(391) 评论(0) 推荐(0)
摘要:1.OJ1278战略游戏 f[u][0]代表以u为根的子树,u不放时,最少放置节点数。 f[u][1]代表以u为根的子树,u放时,最少放置节点数。 f[u][0]=Σf[son][1]。 f[u][1]=Σmin(f[son][1],f[son][0])。 ans=min(f[root][... 阅读全文
posted @ 2015-10-23 15:02 iamCYY 阅读(299) 评论(0) 推荐(0)