摘要: //某题代码#include<iostream> #include<cstdio> #include<map> #include<cstring> using namespace std; long long a[100001],cnt=1; long long Max(long long AA,l 阅读全文
posted @ 2021-11-07 20:17 latent_Lin 阅读(37) 评论(0) 推荐(0) 编辑
摘要: STL是个好东西!!! 阅读全文
posted @ 2021-10-17 21:48 latent_Lin 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 这道题记录状态的思想挺好的 假如棋子在(i,j): 那么它上面空格的编号为((i-1)*4+(j-1)*4+0) 那么它下面空格的编号为((i-1)*4+(j-1)*4+1) 那么它左面空格的编号为((i-1)*4+(j-1)*4+2) 那么它右面空格的编号为((i-1)*4+(j-1)*4+3) 阅读全文
posted @ 2021-08-20 21:17 latent_Lin 阅读(54) 评论(0) 推荐(0) 编辑
摘要: (1)杨辉三角 #include<iostream> #include<cstdio> #include<cmath> #include<map> #include<queue> #include<algorithm> #include<cstring> #include<string> using 阅读全文
posted @ 2021-08-20 08:43 latent_Lin 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 高精加 string jia(string a,string b){ string jg=""; int i,j,k,c=0; int a1[1001]={0},b1[1001]={0},c1[1001]={0}; for(i=1;i<=a.size();i++) a1[i]=a[a.size()- 阅读全文
posted @ 2021-08-19 20:59 latent_Lin 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 传送门 LCA 但桶用的很妙 真的很妙b( ̄▽ ̄)d #include<iostream> #include<cstdio> using namespace std; int Size1=500000,dist[1000001],h1[1000001],h2[1000001],b1[1000001] 阅读全文
posted @ 2021-08-19 20:54 latent_Lin 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-08-19 19:05 latent_Lin 阅读(30) 评论(1) 推荐(0) 编辑
摘要: 传送门 感想:奇奇怪怪的STL和奇奇怪怪的折半 #include<iostream> #include<cstdio> #include<cmath> #include<map> #include<queue> #include<algorithm> #include<cstring> #inclu 阅读全文
posted @ 2021-08-19 11:13 latent_Lin 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 某位神犇整理的 阅读全文
posted @ 2021-08-19 09:31 latent_Lin 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 将一个数 a 拆成若干数相加,使得这若干个数的 LCM 最大。 a ≤ 30000 首先,拆成质数是最优的 我实在没想到这题居然是DP 如果知道这题是用DP就好办了 传送门 阅读全文
posted @ 2021-08-18 22:12 latent_Lin 阅读(17) 评论(0) 推荐(0) 编辑