上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 这题治好了我的快读恐惧症,让我理解了cin的力量 cin,照亮世界! #include<bits/stdc++.h> using namespace std; const int inf=0x3f3f3f3f; int n,ans=-inf; int a[105]; int f[150][150], 阅读全文
posted @ 2024-10-16 19:43 yzc_is_SadBee 阅读(16) 评论(0) 推荐(0)
摘要: 怎么这么多忘交的 一起发的原因还是vjudge #include<bits/stdc++.h> using namespace std; int read() { int x = 0; bool op = 0; char c = getchar(); while(!isdigit(c))op |= 阅读全文
posted @ 2024-10-15 20:18 yzc_is_SadBee 阅读(27) 评论(0) 推荐(0)
摘要: wc,模板exgcd! 甚至还交过 #include<bits/stdc++.h> using namespace std; long long x, y; void digui(long long a, long long b){ if(b == 0) { x = 1; y = 7; return 阅读全文
posted @ 2024-10-15 20:17 yzc_is_SadBee 阅读(11) 评论(0) 推荐(0)
摘要: 唐 #include<bits/stdc++.h> #define U(i,l,r) for(int i(l);i<=r;++i) #define D(i,r,l) for(int i(r);i>=l;--i) #define Huge_Int vector<long long> #define B 阅读全文
posted @ 2024-10-15 20:02 yzc_is_SadBee 阅读(27) 评论(0) 推荐(0)
摘要: 水题,一起切了 #include<bits/stdc++.h> using namespace std; int a[5000010]; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n,k; cin>>n>>k; 阅读全文
posted @ 2024-10-14 20:20 yzc_is_SadBee 阅读(12) 评论(0) 推荐(0)
摘要: st表。(还是半懂不懂) #include <bits/stdc++.h> using namespace std; int n,m,x,y,l,a[100010],f[100010][20]; int main(){ cin>>n>>m; a[1]=0; for(int i=2;i<=n;i++) 阅读全文
posted @ 2024-10-14 20:20 yzc_is_SadBee 阅读(11) 评论(0) 推荐(0)
摘要: 把exgcd忘光了QAQ #include<bits/stdc++.h> using namespace std; long long ans,x1,y1; long long exgcd(long long a,long long b,long long &x1, long long &y1){ 阅读全文
posted @ 2024-10-14 18:44 yzc_is_SadBee 阅读(22) 评论(0) 推荐(0)
摘要: 区间dp。 转移方程见题解(doge) #include<bits/stdc++.h> using namespace std; int m[310],dp[310][310],ans; int main() { ios::sync_with_stdio(0); cin.tie(NULL); cou 阅读全文
posted @ 2024-10-11 20:36 yzc_is_SadBee 阅读(20) 评论(0) 推荐(0)
摘要: 模板区间dp. 懒癌,于是把石子合并copy了一下。 #include<bits/stdc++.h> using namespace std; int m[310],dp[310][310],anss,ans; int main() { ios::sync_with_stdio(0); cin.ti 阅读全文
posted @ 2024-10-11 19:58 yzc_is_SadBee 阅读(12) 评论(0) 推荐(0)
摘要: 简单四维dp。 #include<bits/stdc++.h> using namespace std; int a[355],b,t[5],dp[45][45][45][45]; int main(){ ios::sync_with_stdio(0); cin.tie(NULL); cout.ti 阅读全文
posted @ 2024-10-11 19:13 yzc_is_SadBee 阅读(9) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页