这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
这是70分代码: ```cpp m=gi(),K=gi(); for(int num,i=1; i 0 && a[n]>0) a[n]+=num; else if(num 0) ans+=a[i]; cout<<ans; ```
QAQ 至少我的错误原因是这样: 下放懒标记的时候 我们原本有一个特判,也就是这样 ```cpp void pushdown(int x) { if(tag) { pushtag; } } ``` 但是这道题咱们不止有一个懒标记 而且只要有一个不为0就要pushdown 我原本是这样 ```cpp void pushd…
在讨论《一个可能解决50分WA的方法》回复:
我的50分是因为懒标记也要开long long啊啊啊啊
P2055 [ZJOI2009]假期的宿舍 kuai匈牙利bfs板子(AC)但是没过 换成dfs就对了??? ```cpp #include #include #include #include #include #define ul unsigned long long #define RG register int…
在讨论《too long on line 0?》回复:
恩恩不管它了 还有我不是大佬 @[Chris\_Paul\_Pierce](/space/show?uid=43471)
在讨论《too long on line 0?》回复:
没毛病
在讨论《too long on line 0?》回复:
@[Chris\_Paul\_Pierce](/space/show?uid=43471)
在讨论《too long on line 0?》回复:
这是我的程序@ Chris\_Paul\_Pierce ```cpp #include #include #include #include #define MOD 10000 #define rg register int using namespace std; int n,k,dp[1001][100001];…
```cpp #include #include #include #include #define RG register int #define SZ 500001 using namespace std; struct Edge{int to,nxt;}e[SZ]; int Ehead[SZ],Ecnt=1; v…
在讨论《WA第三个点的人进来看看。。》回复:
听不懂hhh--直接加特判
在讨论《这。。。》回复:
我也在想
在讨论《为什么第二个点too many or too few lines?》回复:
我也是 ```cpp #include using namespace std; int n,sz; struct Man{int l,r,s;}a[1001]; bool cmp(Man a,Man b) {return a.s 10) { X[sz+1]=X[sz]/10; X[sz]%=10; sz++; } }…
```cpp #include #include #include #include #include using namespace std; queue a; bool b[1001]; int m,n,x,cnt=0; int main() { cin>>m>>n; for(int i=1;i >x; if(!b…
```cpp #include #define N 200001 using namespace std; int n,m,l,r,k,Ed[N],tot; int a[N],X[N],cnt,A[N]; struct Tree{int ls,rs,sum;}T[N*25]; inline void build(int…
在讨论《所有优化都开了,还是T了最后一个点》回复:
谢谢
```cpp #include #define M 200001 #define INF 2147483646 using namespace std; int n,m,s,t,cnt=1,head[M]; struct Street{int to,next,val;}X[M]; int dis[M]; inline…
在讨论《为何最后一个点过不去?》回复:
数组大一点
```cpp #include #define N 10000001 using namespace std; int n,m,flag,ans=0,a[N],b[N],X[N '9')&&ch!='-') ch=getchar(); if (ch=='-') w=-1,ch=getchar(); while (ch>…
```cpp #include #include #include int n; int a[100001]; int cmp(const void *a,const void *b) { return *(int *)a-*(int *)b; } int main() { scanf("%d",&n); for(in…
```cpp #include #include using namespace std; int n,heap_size; int heap[1000001]; int put() { int now,next; cin>>heap[++heap_size]; now=heap_size; while(now>1)…