这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《python为什么拉跨了》回复:
@[Zephyr_](/user/91127) 那python有快读操作吗?
在讨论《python为什么拉跨了》回复:
数据更新之后为什么python全死光了,是不是某些内置操作效率有毒?
```python class BIT: #Binary Indexed Tree __c = [0] def __init__(self, n): self.__c *= n + 2 def __lowbit(self, x): return x & (-x) def Add(self, pos, x): while…
在讨论《洛谷日报历年目录》回复:
[here](https://111048.blog.luogu.org/introduction-to-algorithms-suan-fa-dao-lun-di-yi-hua-xun-huan-fou-bi)
在讨论《Luogu Academic & 洛谷官方核心用户群》回复:
爬了爬了
在文章《比STL还STL?——平板电视》发表评论:
好像using namespace __gnu_pbds;不能用吧
在讨论《加强版过了,而且特判一个联通快,但是此题WA#5》回复:
#3吧
在讨论《WA成60???》回复:
对不起,ksm忘开long long了。。。
``` #include #define MOD 10007 using namespace std; int a,b,k,n,m; int f[2001]; int ksm(int x,int y){ int ans=1,tmp=x; for(;y;y>>=1,tmp=tmp*tmp%MOD) if(y&1) ans…
在讨论《WA成了10分??》回复:
@[FOREIGN](/space/show?uid=200467) quq
在讨论《WA成了10分??》回复:
...少打了个括号,AC了 ``` #include using namespace std; int n,ans=0,lit[20],ed; void dfs(int k,int a,int b,int c){ if(a==ed){++ans;return;} for(register int i=ed&(~(a|b…
``` #include using namespace std; int n,ans=0,lit[20],ed; void dfs(int k,int a,int b,int c){ if(a==ed){++ans;return;} for(register int i=ed&(~(a|b|c|lit[k]));i;…
``` #include using namespace std; int n,MOD,pt,q; int b[3][3],a[2][3]; void ksm(int k){ long long ans[3][3],tmp[3][3],tmp1[3][3]; ans[1][1]=1,ans[1][2]=0,ans[2]…
``` #include #define N 50010 using namespace std; int n,k,fa[N*3]; int has(int x){return fa[x]==x?x:fa[x]=has(fa[x]);} void merge(int x,int y){fa[x]=y;} int mai…
在讨论《40分惨案??》回复:
感谢作者大大,忘了特判终点的拐弯了。
```cpp #include #define ink 2147483647 using namespace std; int n,m; string s[1010]; int f[1010][1010][2]; int main(){ std::ios::sync_with_stdio(false); cin>>n>…
在讨论《hack点全爆》回复:
okay了解了
``` #include #define N 300001 #define MOD 998244353 using namespace std; void read(int &x){ char c; while(c=getchar(),!isdigit(c)) continue; x=c-'0'; while(c=ge…
```cpp #include using namespace std; int n,next[100001],f[100001]; int vis[100001],T=0,P,h[100001]; void dfs(int k,int deep){ if(h[k]) return; if(vis[k]){ T=k;P…
在讨论《萌新WA两个点求助》回复:
QUQ
在讨论《萌新WA两个点求助》回复:
emm谢谢你们我过了
在讨论《萌新WA两个点求助》回复:
??这题有什么double操作吗??
```cpp #include using namespace std; int n,m,s,e; int ver[6300],edge[6300],head[2600],next[6300],tot=0; int d[2600]; priority_queue > q; bool vis[2600]; void ad…
```cpp #include using namespace std; int n,m,s,e; int ver[6300],edge[6300],head[2600],next[6300],tot=0; int d[2600]; priority_queue > q; bool vis[2600]; void ad…
在讨论《萌新求助,为何内存爆了3个点》回复:
多了几个特判
在讨论《萌新求助,为何内存爆了3个点》回复:
注册没有大问题吧,顶多后期注册不进去。
在讨论《萌新求助,为何内存爆了3个点》回复:
okAC了
在讨论《萌新求助,为何内存爆了3个点》回复:
```cpp #include using namespace std; int n,m; int ver[2000001],next[2000001],head[100001],tot=0; int vis[100001]; bool T=1,h[100001]; void add(int x,int y){ ver…
```cpp #include using namespace std; int n,m; int ver[200001],next[200001],head[10001],tot=0; int vis[10001]; bool T=1,h[10001]; void add(int x,int y){ ver[++to…