这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp // Problem: // P1955 [NOI2015] 程序自动分析 // // Contest: Luogu // URL: https://www.luogu.com.cn/problem/P1955 // Memory Limit: 500 MB // Time Limit: 2000 ms…
```cpp #include #define int unsigned long long using namespace std; string str; int s,n,a[55]; int num[55][55]; int dp[55][100031]; signed main(){ cin>>str>>s;…
```cpp // Problem: // P2285 [HNOI2004] 打鼹鼠 // // Contest: Luogu // URL: https://www.luogu.com.cn/problem/P2285 // Memory Limit: 125 MB // Time Limit: 1000 ms //…
在讨论《AC了 但是有几个小地方不懂求大佬解惑》回复:
@[Dream_into_the_stars](/user/565169) 哈?
代码如下 ```cpp // Problem: // P2657 [SCOI2009] windy 数 // // Contest: Luogu // URL: https://www.luogu.com.cn/problem/P2657 // Memory Limit: 125 MB // Time Limit: 1…
在讨论《请问这个公共子序列是不是不一定要序号相等》回复:
@[MrcFrst_LRY](/user/600671) 好的
在讨论《为什么用方格取数的代码也可通过》回复:
@[BYR_KKK](/user/802664) 同问......我也在想这个问题 表示疑惑,没想明白原理
在讨论《好奇怪,为什么查询数据会改变数组的值》回复:
@[dalao_see_me](/user/246099) 我的意思是,按照题目的数据第一次查询时不改变的,懒标记是0,但是实际上我查询发现数组大小依然被改变了
```cpp #include #include #include #include using namespace std; #define N 100010 #define LL double #define lc u >1; //除二 build1(lc,l,m); build1(rc,m+1,r); pushu…
```cpp #include #include #include #include using namespace std; #define N 100010 #define LL double #define lc u >1; //除二 build1(lc,l,m); build1(rc,m+1,r); pushu…
```cpp #include #include #include #include using namespace std; #define N 100010 #define lc u >1; //除二 build1(lc,l,m); build1(rc,m+1,r); pushup(u); } void build…
在讨论《82分,两个点超时了捏,求助(悬赏关注)》回复:
@[chillLee](/user/706209) 谢谢您,关注了
```cpp #include #include #include #include using namespace std; #define N 200005 #define LL long long #define lc u >1; //除二 build(lc,l,m); build(rc,m+1,r); } LL…
在讨论《用的高精度,越界了求救,数组没越界啊》回复:
@[AllenJYL](/user/459170) 谢谢
在讨论《用的高精度,越界了求救,数组没越界啊》回复:
@[__Tonycyt__](/user/667037) 说错了(........写懵了
```cpp #include #include #include #include using namespace std; #define N 200005 #define LL long long #define lc u >1; //除二 build(lc,l,m); build(rc,m+1,r); } LL…
在讨论《这道题和线段树1都是区间加,这道题不处理边界过不了?》回复:
@[朦胧_XY](/user/358971) 谢谢,关注了
在讨论《这道题和线段树1都是区间加,这道题不处理边界过不了?》回复:
@[朦胧_XY](/user/358971) 刚好在学这个,请问mid什么意思
在讨论《这道题和线段树1都是区间加,这道题不处理边界过不了?》回复:
```cpp #include #include #include using namespace std; #define N 100005 #define LL long long #define lc u >1; //除二 build(lc,l,m); build(rc,m+1,r); pushup(u); }…
```cpp void change(LL u,LL x,LL y,LL k){ //区间修 if(x>tr[u].r || y tr[u].r || y<tr[u].l) return; 为什么要处理这里,而线段树那题不用?
在讨论《RE了,哪里RE了?悬赏关注》回复:
@[Bart_Bart11](/user/951266) 关注了,调试完成了,非常感谢
在讨论《RE了,哪里RE了?悬赏关注》回复:
@[double_wings](/user/815710) 确实是,能帮忙看看改完的代码嘛? ```cpp #include using namespace std; const int N=100100; long long a[N],b[N]; //b[i]是差分数组 long long a_,b_,c; int…
```cpp #include using namespace std; const int N=10010; long long a[N],b[N]; //b[i]是差分数组 long long a_,b_,c; int main() { ios::sync_with_stdio(0),cin.tie(0),cout…
```cpp #include using namespace std; const int N=5000010; int a[N],b[N]; int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); int n,p; cin>>n>>p; for(in…
在讨论《tle了求助》回复:
@[Ccm1225](/user/112426) 我看到了,但是他的时间复杂度和我的量级好像一样,虽然他的要快一点,差距在那里嘛?
```cpp #include #include using namespace std; const int N=130; int n; long long s[N][N]; int main() { ios::sync_with_stdio(0); cin>>n; for(int i=1; i >s[i][j];…