这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include using namespace std; const int N=5e4+5; int n,m,c[N],kc,kl[N],kr[N],kg,l,r,w[N],h1; int a[N]; struct aa { int l,r,ans1,ans2,time,k; }qu[N]; bool…
```cpp #include using namespace std; long long T,n,s,l,r,ans; int main () { cin>>T; while(T--) { cin>>n; ans=0; l=1,r=1; while(l r)break;//cout<<l<<" "<<r<<":"<…
[数据3的输入](https://www.luogu.com.cn/paste/us9tykmd) [数据3的输出](https://www.luogu.com.cn/paste/xe4t4nn7) [我的代码](https://www.luogu.com.cn/paste/o3oxse9q)
数据3的输如: ```in 100 12 11 44 14 43 69 29 37 78 36 42 70 38 19 20 50 39 7 67 3 37 74 38 80 79 33 13 84 12 56 91 33 36 95 42 12 104 42 49 120 5 17 132 5 5 138 50 26…
在讨论《为什么不开O2和开了O2差距这么大?》回复:
严格 $\sqrt n$ 由于 ```map``` 太慢会 ```TLE``` :[Here](https://www.luogu.com.cn/record/142037228)
[没开O2TLE2及其夸张](https://www.luogu.com.cn/record/142036715) [开了O2第二个点才300ms左右](https://www.luogu.com.cn/record/142036783) 为什么?
``` #include using namespace std; int n,k; long long b[200005],g[15],ksm[60],ans; map mp; int find(long long x){ if(x==1)return 1; int l=1,r=10; while(l >1; if(…
IN ``` 10 4025 19326 9973 7700 12101 9973 13621 29372 9973 8990 362 9973 10440 10101 9973 18517 22970 9973 14871 22433 9973 26273 15511 9973 30325 1620 9973 194…
```cpp #include using namespace std; const int CT=2e7+5; struct aczdj { int tree[CT][30],c,z[CT],f[CT]; void tj(string s) { int f=0; for(int i=0;i q; for(int i=…
在讨论《为什么我绑了```AtCoder```还```RE```》回复:
是 ```UKE```
在讨论《如果你过了1,2,3,4,6,8大样例的话,只有二十分请看着呢》回复:
我的80分啊!
更新这句时,是 ~~~cpp min(a[i],a[i-1]+a[i]); ~~~ 而不是 ~~~cpp min(a[i],min(a[i],b[1]+b[2]+b[3]……+b[i])); ~~~
在讨论《为什么此题时间背削成1秒了》回复:
pdf上是三秒,我们下了pdf之后就断网了 ……
```cpp #include using namespace std; int T,n,a[505]; bool sy; string q(int x) { string re="",s1=""; while(x>0) { re+=x%10+'0'; x/=10; } for(int i=re.size()-1;i>…
在讨论《24分RE求调》回复:
好了,数组开400005就能过。…………
```cpp #include using namespace std; int xdsmax[200005],n,q,a[200005],l,r; int js_max(int l,int r,int w) { if(l==r)return xdsmax[w]=a[l]; int mid=(l+r)/2; retur…
在讨论《60分 估计是数据范围的问题》回复:
同分同样例没过求改: ``` #include using namespace std; int n,m,zl,x,y,k; long long xds[400005],a[400005],lb[400005]; long long js(int l,int r,int w) { if(l==r)return xds[…
在讨论《0分求改,能过样例,WA!》回复:
```cpp #include using namespace std; int n,m,zl,x,y,k; long long xds[400005],a[400005],lb[400005]; long long js(int l,int r,int w) { if(l==r)return xds[w]=a[l];…
在讨论《0分求改,能过样例,WA!》回复:
```cpp #include using namespace std; int n,m,zl,x,y,k; long long xds[400005],a[400005],lb[400005]; long long js(int l,int r,int w) { if(l==r)return xds[w]=a[l];…
在讨论《0分求改,能过样例,WA!》回复:
``` #include using namespace std; int n,m,zl,x,y,k; long long xds[400005],a[400005],lb[400005]; long long js(int l,int r,int w) { if(l==r)return xds[w]=a[l]; in…
在讨论《0分求改,能过样例,WA!》回复:
样例一: IN: ``` 8 10 640 591 141 307 942 58 775 133 2 1 5 2 3 8 2 3 6 2 5 8 2 4 8 1 4 8 60 2 1 6 2 5 8 1 3 7 15 1 2 6 86 ``` OUT: ``` 2621 2356 1448 1908 2215 2859…
```cpp #include using namespace std; int n,m,zl,x,y,k; long long xds[200005],a[200005],lb[200005]; long long js(int l,int r,int w) { if(l==r)return xds[w]=a[l];…
在讨论《此题如何用DFS骗分???》回复:
n才500
在讨论《此题如何用DFS骗分???》回复:
$O(n^2+nlogn)$
在讨论《此题如何用DFS骗分???》回复:
dfs应该可以直接A吧