众里寻TA千百度。蓦然回首,那AC却在,灯火WA处。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!》回复:
cnt没归0
在讨论《why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!》回复:
题目说的是对于每一个整数,输入的每一行整数之间毫无关系,相互独立,所以不应该是cnt++,而是在那个if后面直接输出yes,如果循环完后都没有找到,再输出no
在讨论《100求调》回复:
何以为
```cpp #include using namespace std; int n,k,d; int f[100005]; int main(){ scanf("%d%d%d",&n,&k,&d); for(int i=1;i d){ last+=d; cnt++; num++; } if(num>k) num=1;…
在讨论《求调》回复:
@[LydiaJones](luogu://user/1648161) 你的问题主要在于数组下标,因为是从0开始计算,i的值为串的长度,但遍历只用遍历到一半(可以自己手动模拟验证一下)故第一次循环只用遍历到(i-2)/2,第二次遍历是(len-i-2)/2,内循环要改成len-i-1-j作为下标(自己手动模拟一下可以发…
noip模板赛中 ```cpp #include using namespace std; inline int read(){ int t=0,f=1; char a=getchar(); while(a 57){ if(a=='-') f=-1; a=getchar(); } while(a =48){ t=t*1…
```cpp #include #define int long long using namespace std; map ma; map beg; int n; int op; struct node{ int l,r,w; int fei; int a; }; int cnt; node f[1000006];…
在讨论《玄关!不是很懂,在本地测能90pts,luogu上就只能a3个点》回复:
@[wmmyh](luogu://user/1633249),我把50行,及其类似的结构改成这样:int lll=last[r];r--; heng[i][lll]=m+1-last[r+1];就过了
在讨论《玄关!不是很懂,在本地测能90pts,luogu上就只能a3个点》回复:
@[wmmyh](luogu://user/1633249) 谢谢,但是请问该怎么改呢
```cpp #include using namespace std; #define int long long int ma[1005][1005]; int r; int last[1005]; int shuf[10005][1005]; int shu[1005][1005]; int heng[1005]…
在讨论《85pts求问!!玄关》回复:
谢谢,虽然还是85pts,我已经找到原因了,不能直接++top,因为后面递归下去原来的st[top+1]的值已经被改变,必须记录一下原来的top+1的值,此贴结
```cpp #include using namespace std; #define int long long int n; int ans; char s[500005]; vector e[500005]; int fa[500005]; int lst[500005]; int sum[500005]; v…
在讨论《神秘!k=0时过不了,玄关》回复:
@[luochaoqiang](luogu://user/535955) 虽然但是,我主函数已经把那n-1条边重新编号为1~m了,为什么还要设为n+k。蒟蒻求问
[记录](https://www.luogu.com.cn/record/245658341) ```cpp #include using namespace std; #define int long long int n,m,k; int vis[20000005]; int c[15]; int a[15][10…
在讨论《?Prim0pts》回复:
best friend
在讨论《新手求条,RE第二遍不输出(可关)》回复:
首先,是先输入数据组数T,然后对于每一组数据,有分别的n和m,应改为: ```cpp cin >> group ; for (int j = 1; j > pot >> imf; ... } ``` 其次你的temp一直在累加,永远无法到达!temp的情况,并且由于你的visited数组阻挡了对环的寻找,因为环本身是需…
在讨论《LGR-240 / 梦熊钥匙赛 作弊名单(棕 112,封禁 26)》回复:
第一次这么前!qp
在讨论《40分!!!求调》回复:
没有判断n是奇数的情况@[WCW_LZM](luogu://user/1260455)
在讨论《求问!!》回复:
thx已关@[big_headcrk2025](luogu://user/1355443) thx已关@[complete_binary_tree](luogu://user/683859)
在讨论《近视后入&提问》回复:
同问,非常玄学,访问第一个数的时候下表不是-1吗,竟然还能ac ```cpp #include using namespace std; #define int long long int n,k; int f[100004]; int sum[100005]; int que[100005]; int dp[1000…
在讨论《求问!!》回复:
悬关
在讨论《如果你单调队列0pts》回复:
tkl
状态压缩线段树,望大佬指点迷津 [传送门](https://www.luogu.com.cn/problem/P1558) ```cpp #include using namespace std; int n,m,c; #define int long long struct node{ int l,r; int da…
在讨论《有一个有点唐氏的问题》回复:
因为c++中为了方便调试,随机种子会跟上一次的保持相同,多次相同的随机种子可能会破坏原有的随机性,导致平衡树中的随机性不够,所以为了确保随机性,用time给一个随机种子保证随机性
```cpp #include using namespace std; int n,m,c; #define int long long struct node{ int l,r; int data; int lz; }tree[400005]; void build(int k,int l,int r){ tree…
114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514 114514…
在讨论《拓扑排序40分,WA后五个,悬赏关注》回复:
广搜呢,为什么广搜过不了
[rt](https://www.luogu.com.cn/problem/P5767) ```cpp #include using namespace std; const int inf=1e10; int n,m; int f[505][505]; int t[505]; int dis[505]; char a…