这个蒟蒻很菜,什么也没有留下?
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
三个合并时 dp[i][j] \\双指针分别是 ***l**,**r*** **dp[i][j]=max(dp[i][j],dp[i][l]+dp[l+1][r-1]+dp[r+1][j]);** ### 不仅要判断dp[i][l]==dp[r][j] ## 切记要判断dp[l+1][r-1]!=-1(初始值) hac…
在讨论《样例没过但AC了》回复:
@[liumuyunG2028](luogu://user/1283971)\ @[LPR_318](luogu://user/1294410)
在讨论《样例没过但AC了》回复:
@[Lonely_Peak](luogu://user/1268380)
离谱的思路配上离奇的码风。 ```cpp #include using namespace std; const int N=2e5+5; int n,l,r,ans=INT_MIN; int a[N],dp[N]; struct node { int id,d; bool operator q; signed mai…
在讨论《SCP-J1/S1 作答数据统计》回复:
hp
在文章《题解:P12312 [蓝桥杯 2024 国 C] 六一儿童节》发表评论:
好甜好甜好甜好甜好甜好甜好甜好甜,磕了磕了磕了磕了磕了磕了磕了!!!!!!!!!
数据太大,深搜做不了,只能用 数学 贪心的思想。。 声明:1,1到n,m和1,1到m,n最短路步数相同,所以 if(n>m)swap(n,m); 计算是从0,0开算的,而题目是从1,1开走的,所以要 n--; m--; **上思路**: 首先,我把路径分成两段 上图: n=4 m=7 |1||||||| |:-:|:-…
你会看到此帖,是因为这个账号的拥有者在中午吃饭时未能保管好自己的账号。 希望各位引以为戒。 发布者:@[Hootime](luogu://user/1275540)
在讨论《邻接矩阵求调》回复:
@[liumuyun](luogu://user/1408638)
在讨论《邻接矩阵求调》回复:
@[yuruilin2026](luogu://user/1294410)
虽然A不了,但我这个蒟蒻想试试(0分) ```cpp #include using namespace std; const int N=1e3+3; int g[N][N],n,m,dist[N],vis[N],ans=0; void prim(int u) { memset(dist,0x3f3f3f3f,size…
```cpp #include using namespace std; const int N=10005; const int INF=0x3f3f3f3f; int n,m; int dist[N],path[N],flag[N]; struct edge{ int to,w; edge(int _to,int…
```cpp #include using namespace std; const int N=1005,INF=0x3f3f3f3f; int n,m; int g[N][N],dist[N],p[N],f[N]; void init() { memset(g,0x3f,sizeof(g)); memset(dis…
在讨论《建议升蓝》回复:
+1
在讨论《建议升蓝》回复:
+1 这题有亿点麻烦。