摘要:
```cpp include using namespace std; const int N=500005; int n,m,u,v,fa[N],tmp=0x3f3f3f3f; bool can,ring[N],vis[N],huis; vector mp[N]; inline void dfss 阅读全文
摘要:
```cpp include define inf 0x3f3f3f3f using namespace std; const int N=100005; struct node{int tow,val;}; int t,n,m,k,mod,dis[N],u,v,w,dp[N][52]; bool 阅读全文
摘要:
```cpp include define int long long using namespace std; const int N=300005; inline int read() { int x=0,f=1;char c=getchar(); while(c'9'){if(c==' ')f 阅读全文
摘要:
NOIP 2017 时间复杂度 模拟+字符串 作为一个代码能力极其一般的蒟蒻,这道题算是整个代码能力训练中比较好写的一道了。注意读入部分要预处理很多细节,正如先辈们说的,写一点调一点就能极大程度减少后期调代码的难度。 开始说细节: 1. 读入一定要离线后再进行预处理,如果在线会导致整个细节非常复杂, 阅读全文
摘要:
```cpp include using namespace std; const int N=10; int n,mp[N][N],u,ansx[N],ansy[N],ansd[N]; inline void confirm() { bool flag=true; for(int i=1;i=3) 阅读全文
摘要:
```cpp #include using namespace std; const int N=30; int n,t[5][N],tmp[N],vis[N]; string s1,s2,s3; inline void dfs(int h,int l,int j) { if(!h) { if(!j) { for(int i=1;i=1;i--) { int t1=tmp[... 阅读全文
摘要:
```cpp include using namespace std; const int N=20; int t,n,ans,a,b,card[N]; inline void dp(int now); inline void bl3(int now) { for(int i=3;i=3)len++ 阅读全文