随笔分类 -  / 数学(杂项)

摘要:https://www.luogu.com.cn/problem/P2789 不是,\(n\le25\),这都能TLE? 始山代码,不说了 #include<bits/stdc++.h> using namespace std; int t[114514]; vector<int> lns; voi 阅读全文
posted @ 2025-04-13 11:27 yzc_is_SadBee 阅读(27) 评论(0) 推荐(0)
摘要:切不动了!!! #include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<=b;++i) using namespace std; inline int read(){int x=0;bool f=0;char ch=getchar();whi 阅读全文
posted @ 2024-10-22 20:39 yzc_is_SadBee 阅读(9) 评论(0) 推荐(0)
摘要:椒过 #include <bits/stdc++.h> using namespace std; int n,m,tot,lnk[505],ter[500005],nxt[500005],st[500005],ed[500005],deg[505]; double a[505][505],b[505 阅读全文
posted @ 2024-10-21 08:58 yzc_is_SadBee 阅读(15) 评论(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 阅读(9) 评论(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 阅读(26) 评论(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 阅读(20) 评论(0) 推荐(0)
摘要:题解 总之,赞美太阳 #include <bits/stdc++.h> using namespace std; inline int read(){ char c;int f=1,res=0; while(c=getchar(),!isdigit(c))if(c=='-')f*=-1; while 阅读全文
posted @ 2024-09-13 20:14 yzc_is_SadBee 阅读(25) 评论(0) 推荐(0)
摘要:题解其1 最终看着写的题解 #include <bits/stdc++.h> using namespace std; inline void read(long long&x){ char c11=getchar();x=0;while(!isdigit(c11))c11=getchar(); w 阅读全文
posted @ 2024-09-13 19:43 yzc_is_SadBee 阅读(15) 评论(0) 推荐(0)
摘要:这个故事告诉我们,要全心全意赞美太阳。 题解 #include<bits/stdc++.h> using namespace std; const unsigned long long mod=998244353; struct data { int dp[3][3]; inline int* op 阅读全文
posted @ 2024-09-11 19:29 yzc_is_SadBee 阅读(12) 评论(0) 推荐(0)
摘要:概率期望谔谔谔。 #include<bits/stdc++.h> using namespace std; double f[1010][1010]; double g[1010][1010]; double C[1010][1010]; int main() { int n = ri, d = r 阅读全文
posted @ 2024-09-10 20:29 yzc_is_SadBee 阅读(17) 评论(0) 推荐(0)