人有悲欢离合,题有绿蓝紫黑。此题难AC。 但愿无JC,千里共AK
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include using namespace std; string z,a; int n,b[100100],c,d=0,dd,bj; int pd(int x){ for(int i=0;i ='A'&&z[i] ='A'&&a[i] 'z')&&(z[i+a.size()] 'z')){ //c…
```cpp #include using namespace std; const int mod=10000; stack x; queue q; long long a,c,d,e; char b; int main() { q.push(1); q.push(2); q.push(3); while(!q.em…
```cpp #include using namespace std; long long a, b = 0, c = 0, d, e, f, g, n, m, x, y, k; int main() { long long zz[100100]={0},zx[100100]={0}; cin>>a; char z;…
在讨论《0分,求解必关,变量有注释》回复:
@[ZLBh](luogu://user/1246535) 哦,对了,一开始还想着,后来忘了,谢了
在讨论《0分,求解必关,变量有注释》回复:
@[ZLBh](luogu://user/1246535)嘿嘿,简单粗暴,在前面都刚刚好(d=0)的情况下两个“))”已经无法挽回了,所以c=100,是无论如何都>2,不是可爱的
在讨论《0分,求解必关,变量有注释》回复:
@[ZLBh](luogu://user/1246535)你看哈,")"在前时需要交换,例如“())(”,当运行到第三个时,d=-1,代表需要交换啦,c就自增1,如果下一个是“)”,d=-2,没救了。若果下一个是“(”,d=0,就又回来了。所以没必要交换啊(你不妨举一个例子证明一下,谢谢)
在讨论《0分,求解必关,变量有注释》回复:
这个就是交换 if(d<0)c++;
在讨论《0分,求解必关,变量有注释》回复:
@[ZLBh](luogu://user/1246535)没错啊,确实是只能交换一次啊
```cpp #include using namespace std; int main() { //freopen("a.in","r",stdin); //freopen("a.out","w",stdout); int a,b=0,c=0,d=0,e,f,g;//a是个数,b是单个长度,c是修改次数,d是判断用…
```cpp #include using namespace std; int z[100100]; int dp(int a,int b){ if(a>=b){ return 0; } int x,i=a,j=b; x=z[i]; while(i =x){ j--; } z[i]=z[j]; while(i >a;…
在讨论《40分,求调必关》回复:
@[Leianha](luogu://user/153843)那应该用啥?scanf("%s", x)好像也不行
```cpp #include using namespace std; int main() { int a, b[100100][3], c = 0, d = -1, e = 0, f = 0, g; string z, Z; char x[10010], y[10010]; fgets(x, 10010, std…