摘要: 注意不能按id去重!只能id,val同时相同时才能去重!! struct node { int id, val; bool operator<(const node &x) const { if (x.id == id&&x.val==val) return 0; if (x.val == val) 阅读全文
posted @ 2018-08-15 21:45 planche 阅读(148) 评论(0) 推荐(0) 编辑
摘要: LL B[N][2],C[N][N],f[N][2]; int n,m; LL gcd(LL a,LL b){return b?gcd(b,a%b):a;} LL lcm(LL a,LL b){return a/gcd(a,b)*b;} void getC(int n) { int i,j; n++ 阅读全文
posted @ 2018-08-15 01:15 planche 阅读(233) 评论(0) 推荐(0) 编辑