ops1211
ops1211
全部文章
模板
2019寒假ap协会第二周(2)
ap协会第二周(1)
csdn用法(3)
dp(4)
stl(1)
大数运算(1)
寒假备战蓝桥杯(5)
尺取法(2)
带权并查集(1)
并查集(1)
思维(1)
数论(7)
未归档(31)
石油大个人训练赛题目集(1)
蓝桥备战模板(1)
题解(3)
归档
标签
去牛客网
登录
/
注册
ops1211的博客
全部文章
/ 模板
(共10篇)
P3870 [TJOI2009]开关(线段树模板题)
开两个sum变量分别维护开的灯数和关的灯数 开关的时候就交换一下 题目描述 现有N(2 ≤ N ≤ 100000)盏灯排成一排,从左到右依次编号为:1,2,…,N。然后依次执行M(1 ≤ M ≤ 100000)项操作,操作分为两种:第一种操作指定一个区间[a, b],然后改变编号在这个区间内的灯的...
2019-05-28
0
609
LightOj 1422 Halloween Costumes(区间dp)
#include<iostream> #include<string.h> using namespace std; int a[200];int dp[200][200]; int main(){ int t;cin>>t; int cn=1; whil...
2019-05-02
0
521
LightOj 1422 Halloween Costumes 两种姿势详解(区间DP)
#include<iostream> #include<string.h> using namespace std; int a[200];int dp[200][200]; int main(){ int t;cin>>t; int cn=1; whil...
2019-05-02
0
710
Palindrome subsequence HDU - 4632
#include<iostream> #include<string.h> using namespace std; const int mod=10007; int dp[1009][1009]; int main(){ int t;int ca=0; while(...
2019-04-29
0
469
Palindrome subsequence HDU - 4632
#include<iostream> #include<string.h> using namespace std; const int mod=10007; int dp[1009][1009]; int main(){ int t;int ca=0; while(...
2019-04-29
0
548
HDU 4704 Sum(隔板原理+组合数求和公式+费马小定理+快速幂)
https://www.cnblogs.com/Annetree/p/7097750.html
2019-04-23
0
450
HDU 4704 Sum(隔板原理+组合数求和公式+费马小定理+快速幂)
https://www.cnblogs.com/Annetree/p/7097750.html
2019-04-23
0
546
hdu 4549 M斐波那契数列 数论 矩阵
#include<iostream> using namespace std; typedef long long LL; struct mat{ LL m[2][2]; }; mat mul(mat a,mat b){ mat ans; for(int i=0;i<2;...
2019-04-23
0
472
poj3070 Fibonacci(矩阵快速幂模板)
#include<iostream> using namespace std; typedef long long LL; struct mat{ int m[2][2]; }; mat mul(mat a,mat b){ mat ans; for(int i=0;i<2...
2019-04-21
0
512
gcd
转 GCD的不同写法(while、递归式辗转相除,异或交换两值,二进制筛因子) 2018年08月05日 09:08:13 kuronekonano 阅读数:267 ...
2019-04-13
0
709