时人不识凌云木,直待凌云始道高
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
题:[策略游戏](https://www.luogu.com.cn/problem/P8818) 代码:[源码](https://www.luogu.com.cn/paste/l5ga47f5) # 谢谢你
在讨论《求助》回复:
@[zhangzhengyan0831](/user/715244) 求前k最段路的
在讨论《求助》回复:
@[zhangzhengyan0831](/user/715244) 你好,您有没有相应的代码,您发的网址中并没有具体代码,我似乎并没有太懂(谢谢你)
在讨论《求助》回复:
@[zhangzhengyan0831](/user/715244) A*算法是什么
在讨论《求助》回复:
@[zhangzhengyan0831](/user/715244) 谢谢你
在讨论《求助》回复:
@[zhangzhengyan0831](/user/715244) 求最优一直到第k优的解
```cpp #include using namespace std; int n,ans=0,f[15],res,tmp; inline bool ok(int l,int r,int num) { for(int i=l;i =tmp) return; for(int i=1;i =2) { for(int j=…
题目: 将整数 n 分成 k 份,且每份不能为空,问有多少种不同的分法。当 n=7, k=3 时,下面三种分法被认为是相同的:1,1,5; 1,5,1; 样例(20 4)正解 64 ```cpp #include #define ll long long using namespace std; int n,k,ans…
在讨论《蒟蒻代码求调,不求满分,只求90分(样例过了,评测全WA)》回复:
```cpp #include #include #include #include #include #include #include #define ull __int128 #define N 100001 using namespace std; int n,m,d[N],read(),r[N],st[15]…
在讨论《蒟蒻代码求调,不求满分,只求90分(样例过了,评测全WA)》回复:
@[___LOSER___](/user/616028) 用__int 128
```cpp #include using namespace std; struct node{ int num,a[55],king; node() { num=king=0; } }line[105]; int n,m,ans=0; char mp[15]; void prepare() { for(int i=…
```cpp while(y>=0&&x+y>num[i][j]+f[i][x]+dp[j][y]) y--; ``` 这行在干嘛啊 ```cpp #include using namespace std; #define N 205 struct node{ int l,r; }t[N]; int n,a[N],to…
```cpp while(y>=0&&x+y>num[i][j]+f[i][x]+dp[j][y]) y--; ``` ```cpp #include using namespace std; #define N 205 struct node{ int l,r; }t[N]; int n,a[N],tot,f[2*N…
在讨论《不懂就问》回复:
@[wuuminghao666](/user/761402) ??,但我只需要从mon[i].z开始啊
为什么要从0开始,不然就会错??? ```cpp for(int j=0;j using namespace std; struct node{ int z,num; }mon[205]; int n,m,f[205][20005]; int main() { memset(f,0x3f,sizeof(f)); sca…
在讨论《那里出错了(求个助)》回复:
unsigned long long中0-1=18446744072709551615
[DP](https://loj.ac/p/10177) /* 5 2 1 2 3 4 5 应输出:12 */ ```cpp #include #include #include #include #include #include #define N 100005 #define ull unsigned long…
在讨论《为什么在不超时下还会错》回复:
@[yydfj](/user/455757) okok,thanks
[最大连续和](https://loj.ac/p/10176) /* 50 6 -47 -75 0 40 46 94 -66 55 75 -33 8 94 -65 -39 40 -98 -58 29 20 71 -11 55 57 -82 95 -56 85 1 -75 83 48 32 68 25 -34 -21 2…
```cpp #include #include #include #include #include #include #include #include using namespace std; int n,k,a[1000005],dp[1000005]; void dp_min() { deque q,t; f…
```cpp #include using namespace std; int n,k,root,m,a[2000005],b; struct tree{ int l,r,w,tn; bool node; tree() { l=r=-1; node=false; } }t[2000005]; void insert(…
```cpp for(int i=1;i #define N 205 #define ll long long using namespace std; struct node{ int x,y; }a[N]; int n,dp[N][N]; int main() { scanf("%d",&n); int u; sc…
```cpp #include #define N 105 using namespace std; int n,a[2*N],sum[2*N],dp[N][N],f[N][N]; int main() { scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d",&a[i])…
在讨论《哪里有问题啊(求帮助)》回复:
75(记忆话搜索) ```cpp #include #define N 10005 using namespace std; struct tree{ int l,r,tm,w; tree() { l=r=-1; } }t[N]; int TIME,num,dp[N][N]={0},fa[N]; void plant(…