4 等我学会后缀自动机

尚未进行身份认证

我要认证

侠影之谜

等级
TA的排名 7k+

Codeforces Round #651 (Div. 2)(A,B,C,D,E)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,mid,rt<<1#define rson mid+1,r,rt<<1|1#defin.

2020-06-26 09:31:38

Codeforces Round #646 (Div. 2) F Rotating Substrings(思维DP)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,mid,rt<<1#define rson mid+1,r,rt<<1|1#defin.

2020-06-14 15:59:40

Codeforces Round #646 (Div. 2) E. Tree Shuffling

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,mid,rt<<1#define rson mid+1,r,rt<<1|1#defin.

2020-06-12 11:19:27

Codeforces Round #648 (Div. 2) (A,B,C,D,E,F)

A#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,mid,rt<<1#define rson mid+1,r,rt<<1|1#de

2020-06-10 11:21:01

Educational Codeforces Round 86 (Rated for Div. 2) D. Multiple Testcases(思维)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,mid,rt<<1#define rson mid+1,r,rt<<1|1#defin.

2020-05-31 14:31:14

P2444 [POI2000]病毒(AC自动机模板+)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-28 11:40:04

CodeForces 454D Little Pony and Harmony Chest (状压DP+估界)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-26 07:46:46

CodeForces 315E Sereja and Subsequences (权值线段树+DP)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-25 22:46:27

CodeForces 315D Sereja and Periods (思维DP)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-25 07:59:31

P5357 【模板】AC自动机(二次加强版)(树上差分+AC自动机)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-24 20:53:57

P3796 【模板】AC自动机(加强版)(AC自动机模板)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-24 00:23:38

P3808 【模板】AC自动机(简单版)(AC自动机模板)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-24 00:02:45

基于Keras的关于GAN的初学者demo

%tensorflow_version 1.xfrom keras.datasets import mnistfrom keras.layers import Dense,Dropout,Inputfrom keras.models import Model,Sequentialfrom keras.layers.advanced_activations import LeakyReLU...

2020-04-23 19:19:29

CodeForces 270D Greenhouse Effect (DP+LIS)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-23 16:39:55

CodeForces 320D Psychos in a Line (单调栈+DP)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-21 10:40:29

CodeForces 214E Relay Race (DP+思维)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-19 19:35:26

CodeForces 214D Numbers (DP+组合数学+前导零的细节)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-19 19:33:37

学习一个简单的纯numpy实现的神经网络象限分类

import numpy as np#神经网络的分类任务#理论上两层神经网络就足够拟合任意函数#为了使得神经网络不仅仅只能拟合线性函数,引入了激活层#常见的激活函数有三种:阶跃,Sigmoid,ReLU函数def affine_forward(x,w,b): out=None N=x.shape[0] x_row=x.reshape(N,-1) out=np.dot...

2020-04-18 00:23:57

HDU 5614 Baby Ming and Matrix tree (树链剖分+线段树区间修改)

#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson l,m...

2020-04-17 10:43:37

Codeforces Round #635 (Div. 2) A,B,C,D

A#include<bits/stdc++.h>using namespace std;#define debug puts("YES");#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)#define ll long long#define lrt int l,int r,int rt#define lson ...

2020-04-16 16:09:10

查看更多

勋章 我的勋章
  • 阅读者勋章Lv2
    阅读者勋章Lv2
    授予在CSDN APP累计阅读博文达到7天的你,是你的坚持与努力,使你超越了昨天的自己。
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv4
    勤写标兵Lv4
    授予每个自然周发布9篇以上(包括9篇)原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。