Success is a concept, a thought, a habit and a state of mind.
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《艺术节班级要选歌,求》回复:
@[kkksc03_orz](luogu://user/1388561)wake up
# 题干 ## 题目描述 给定整数序列 $ A $ ,要构造一个数列 $ B $ ,其中 $ B $ 由 $ 0 ,1 $ 组成,且 $ 0 $ 的个数等于 $ 1 $ 的个数。 在此前提下,构造一个数列 $ B $ 使得 $ \sum_{i=2}^n A[i]*(B[i] \otimes B[⌊i/2⌋]) $最大。…
考场想的好复杂,直接爆炸,考完了也不知道为啥错了,求调 ```c #include using namespace std; int n; int f[100010];//初始数组 int p[100010];//合并 int gj[100010];//攻击 int tot; int l,r; int ans; int…
``` #include using namespace std; int n; int a[200010]; int whead[200010],wnext[200010],ver[200010]; int tot; int mp[200010]; int ans=1e9; void add(int x,int y)…
输出一直是1 ``` #include using namespace std; int n,k; string s; int ans; int a[510]; void check() { int zk=0,ch=0; for(int i=0;i k) { return; } } } if(s[n-1]!=')')…
代码在最后输出时有问题,求改正 ```cpp #include using namespace std; int n,a,b; int wver[30010],whead[30010],wnext[30010]; int tot,wtime;//时间戳 int fa[30010];//父节点 int dep[30010…
```cpp #include using namespace std; int p1,p2,p3; string s; char c; map x; map d; void csh()//可以理解为暴力打标 { x['a']='a'; x['b']='b'; x['c']='c'; x['d']='d'; x['e'…
6没过 输入: ``` 1 1 1 2-43-sdf-ewr0-j-9re-j0g-9e0-9as-d09jf-9asdjf0q-w-ejr0q-59jdsnf-9z-x9v0-sd9fn--q ``` 输出: ``` 2343-sdf-ewr0-j-9refghij0g-9e0123456789as-d09jf-9a…
```cpp #include using namespace std; int p1,p2,p3; string s; char c; map x; map d; void csh()//可以理解为暴力打标 { x['a']='a'; x['b']='b'; x['c']='c'; x['d']='d'; x['e'…
``` #include using namespace std; int n,m; int q,e; struct nbfk { int wfirst,wsecond,wthird; }a[40010]; int c[1010];//区块 int l[40010],r[40010];//区块值 vector d[40…
```cpp #include using namespace std; int n,m; int q,e; struct nbfk { int wfirst,wsecond,wthird; }a[40010]; int c[1010];//区块 int l[40010],r[40010];//区块值 vector d…
```cpp #include using namespace std; int n,m; int q,e; struct nbfk { int wfirst,wsecond,wthird; }a[40010]; int c[1010];//区块 int l[40010],r[40010];//区块值 vector d…
```cpp #include using namespace std; int n,m; int q,e; struct nbfk { int wfirst,wsecond,wthird; }a[40010]; int c[1010];//区块 int l[40010],r[40010];//区块值 vector d…
```c #include using namespace std; int n,m; int q,e; struct nbfk { int wfirst,wsecond,wthird; }a[40010]; int c[1010];//区块 int l[40010],r[40010];//区块值 vector d[4…
在讨论《有人解释一下题目吗》回复:
@[chyuya](/user/549149) @[Roy_2010](/user/1036945) 谢谢
在讨论《有人解释一下题目吗》回复:
第二个样例是 2 3 3 5 5 2 3 3 5 1 输出 10
在讨论《爆零求助》回复:
不是,这个是用线段树做的吧
```c #include using namespace std; int n,m; int f[2000010][32]; inline int read() { int x=0,f=1; char ch=getchar(); while (ch '9') { if (ch=='-') f=-1; ch=getch…
在讨论《求解答》回复:
哦,谢谢
``` #include using namespace std; int n,tot; vector s[6010]; int v[6010],f[6010][2]; int kl[6010]; int l,k; void dp(int x) { f[x][0]=0; f[x][1]=kl[x]; for(int i…
~~完全不知道怎么改~~ ``` #include using namespace std; int n,m; int si,ki; vector f[310]; int d[310][310]; int k[310]; void dp(int x) { d[x][0]=0; for(int i=0;i =0;--t)…
在讨论《谁能讲讲题目中的k是什么意思》回复:
@[p_Hydroxy](/user/551788) 之前没见过,谢谢
``` #include using namespace std; int a,b,k,n,m; int f[1010][1010]; int main() { cin>>a>>b>>k>>n>>m; a%=10007; b%=10007; f[0][0]=1; int bj=1; for(int i=1;i<=k+1…