千里之行,始于足下。祝你一路顺风,半路掉坑。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《标准版过了,弱化版全MLE》回复:
@[EnochLiu2012](luogu://user/1672657)我刚做完[图论与代数结构 202] 最短路问题_2然后……,就接着做这个标准和弱化了
在讨论《标准版过了,弱化版全MLE》回复:
@[wolf224322](luogu://user/1826908)谢谢
在讨论《标准版过了,弱化版全MLE》回复:
@[qwq_Furry](luogu://user/1780790)谢谢
在讨论《标准版过了,弱化版全MLE》回复:
谢谢!
```cpp #include using namespace std; #define int long long #define PII pair struct lfl{ int v,w; }; vector e[10000001]; priority_queue q; int n,m,u,v,w,s,d[4000…
```cpp #include using namespace std; #define int long long #define PII pair struct lfl{ int v,w; }; vector e[10000001]; priority_queue q; int n,m,u,v,w,s,d[4000…
在讨论《2025 年度总结已上线》回复:
qp
在讨论《为啥样例没过也100?》回复:
@[Lexot](luogu://user/1979336)我在c++上没过
在讨论《为啥样例没过也100?》回复:
@[Lexot](luogu://user/1979336)对
```cpp #include using namespace std; vector e[100001]; int len[100000],in[101011],f[11019]; int n,x,y,m; int main() { cin>>n; for(int i=1;i >m>>len[m]; while(ci…
在讨论《01背包咋做???》回复:
(大佬勿喷)
在讨论《01背包咋做???》回复:
滚动背包,可以大大降低空间复杂度
在讨论《01背包咋做???》回复:
模版差不多这样
在讨论《01背包咋做???》回复:
```cpp for(int i=1;i >v>>o; for(int j=t;j>=v;j--) { dp[j]=max(dp[j],dp[j-v]+o); } } ```
在讨论《100WA1,求条!》回复:
我知道,我应经dfs过了,但这种方法好像也行。
```cpp #include using namespace std; long long x,y,p; short a[10001][10001]; long long t; int main() { cin>>t>>p; while(t--) { cin>>x>>y; int f=0; while(x!=0&&y…
在讨论《100分但不对求调》回复:
@[Little_corn](luogu://user/426737)十分抱歉,当时手滑,不小心点到举报了,本身想感谢的,还请原谅。
```cpp #include using namespace std; int n,a[100010],dp[100001]; int main() { cin>>n; for(int i=1;i >a[i]; } dp[1]=1; for(int i=2;i<=n;i++) { dp[i]=1; for(int j…