签名
增加 1 行删除 1 行
1我是给!||禁言是自己申请的||九年级fw||高中不APIO铜牌金钩不改签||宣团92514||纠出通过的题解内容(非格式)错误会关注。1我是给!||禁言依旧是自己申请的(不信的话去www.luogu.ac.cn/user/1123752看,要NOIP了)(该网站死了,直接去陶片看得了)||高中不APIO铜牌金钩不改签||宣团92514||纠出通过的题解内容(非格式)错误会关注。
个人介绍
增加 30 行删除 305 行
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430548 行未改动354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397https://www.luogu.com.cn/article/64n5mmejhttps://www.luogu.com.cn/problem/CF1093Ehttps://www.luogu.com.cn/problem/CF600Ehttps://www.luogu.com.cn/article/hw36k67h1. 52. 计划3. 资源4. 比赛https://vjudge.net/problem/QOJ-16808橙青蓝紫180,橙绿青紫220,青绿绿紫160,橙青蓝紫140P15762P6624P14538CF2180DCF2180CAT_arc192_aAT_arc069_cP17568P17571P17566P17567P13564contest/23456user/43123user/1053106user/565742user/672336user/419487user/704275https://codeforces.com/problemset/problem/1110/D水题:P3702,P4755,P3738,P3873,P3856,P4171,P3831,P5376,P3287,P4768,P9132正确的卡常方法:使用 fastio、在各种地方中增加剪枝、换一种语言、精细开 long long、将 vector 替换为前向星状物$Nothing$ $can$ $change$ $my$ $love$ $for$ $OI$.$I$ $am$ $an$ $OIer$.期望估值3642026.10.20 通过 1.2k 祭2026.8.4 通过 1.1k 祭2026.5.23 通过 1.02k 祭2026.5.16 通过 1k 祭2026.2.23 绿题通过数量超过红题祭,等级分 1600 祭https://www.luogu.com.cn/article/nyiwisd6https://www.luogu.com.cn/record/182866375https://www.luogu.com.cn/record/255386029https://www.luogu.com.cn/record/174493368https://www.cnblogs.com/The-Shadow-Dragon/p/18048090https://www.luogu.com.cn/record/212022749一生何求红日月亮惹的祸刀剑如梦神话情话铁血丹心特别的爱给特别的你谁能明白我月亮惹的祸https://www.luogu.com.cn/problem/list?type=all&keyword=%E6%9D%9C%E6%95%99%E7%AD%9B&tag=461https://www.luogu.com.cn/problem/P7402https://www.luogu.com.cn/problem/P10437https://www.luogu.com.cn/problem/P14468contest 27 页猫石游戏、月影戀```cpp#include<iostream>#include<stdlib.h>#include<algorithm>#include<string.h>#include<numeric>#include<vector>#include<set>#include<queue>using namespace std;struct node {int next,v,w;};int n,m,num_edge;int head[4005],size[4005],f[4005][4005];node edge[4005];void add(int u,int v,int w) {num_edge++;edge[num_edge]=(node){head[u],v,w};head[u]=num_edge;}void dfs(int u) {if(u<=n-m) {f[u][0]=0;for(int i=head[u];i>0;i=edge[i].next) {int v=edge[i].v;dfs(v);size[u]+=size[v];for(int j=size[u];j>=0;--j)for(int g=0;g<=j && g<=size[v];g++) {if(f[u][j-g]>-2139062144)f[u][j]=max(f[u][j],f[u][j-g]+f[v][g]-edge[i].w);}}}elsesize[u]=1;}int main() {ios::sync_with_stdio(0);cout.tie(0);cin>>n>>m;for(int u=1,v,w,c;u<=n-m;u++) {cin>>c;while(c--) {cin>>v>>w;add(u,v,w);}}memset(f,128,sizeof f);for(int i=n-m+1;i<=n;i++)cin>>f[i][1];dfs(1);for(int i=size[1];i>=0;--i)if(f[1][i]>=0) {cout<<i<<'\n';break;}}``````cpp#include <cmath>#include <cstdio>#include <vector>#include <algorithm>using namespace std;#define rep(i, x, n) for(int i=x;i<=n;i++)const double EPS = 1E-9;int dcmp(double x) {return fabs(x) <= EPS ? 0 : (x > 0 ? 1 : -1);}double a[55][55];void pivot(int l, int e, const int &n, const int &m) {double t = a[l][e]; a[l][e] = 1;rep(j, 0, m) a[l][j] /= t;rep(i, 0, n) if( i != l && dcmp(a[i][e]) != 0 ) {t = a[i][e], a[i][e] = 0;rep(j, 0, m) {if( !i && !j ) a[i][j] += t * a[l][j];else a[i][j] -= t * a[l][j];}}}double simplex(const int &n, const int &m) {while( true ) {int l = 0, e = 0;rep(j, 1, m) if( dcmp(a[0][j]) > 0 && (!e || dcmp(a[0][j] - a[0][e]) > 0) )e = j;if( !e ) break;rep(i, 1, n) if( dcmp(a[i][e]) > 0 && (!l || dcmp(a[i][0]/a[i][e] - a[l][0]/a[l][e]) < 0) )l = i;if( !l ) return 0;pivot(l, e, n, m);}return 1 / a[0][0];}vector<int>G[25]; double f[25][25][25]; int n;double dp(int x, int y, int p) {if( x == y ) return 0;if( p == 0 ) return 1;if( f[x][y][p] != -1 ) return f[x][y][p];int sn = G[x].size(), sm = G[y].size();rep(i, 1, sn) rep(j, 1, sm) dp(G[x][i - 1], G[y][j - 1], p - 1);rep(i, 1, sn) a[i][0] = 1;rep(j, 1, sm) a[0][j] = 1;rep(i, 1, sn) rep(j, 1, sm)a[i][j] = dp(G[x][i - 1], G[y][j - 1], p - 1);a[0][0] = 0; return f[x][y][p] = simplex(sn, sm) + 1;}int main() {int m, sr, sk, u, v, t;scanf("%d%d%d%d%d", &n, &m, &sr, &sk, &t);rep(i, 1, m) scanf("%d%d", &u, &v), G[u].push_back(v);rep(i, 1, n) G[i].push_back(i);rep(i, 1, n) rep(j, 1, n) rep(k, 1, t) f[i][j][k] = -1;printf("%.3f\n", dp(sr, sk, t));}```https://www.cnblogs.com/refunhttps://www.luogu.com.cn/problem/P3956https://www.luogu.com.cn/problem/P4525https://www.luogu.com.cn/problem/list?type=luogu&difficulty=6&page=2&tag=523https://www.luogu.com.cn/problem/list?type=luogu&difficulty=6&page=2&tag=523https://www.cnblogs.com/rrsb/p/9867233.htmlhttps://www.luogu.com.cn/problem/P8079https://blog.csdn.net/wu_tongtong/article/details/78785836https://www.luogu.com.cn/problem/P4406https://www.luogu.com.cn/problem/AT_agc032_bhttps://www.luogu.com.cn/problem/P2906https://www.luogu.me/article/5uabdb4thttps://www.luogu.com.cn/problem/P15121https://www.luogu.com.cn/problem/SP2939https://www.luogu.com.cn/problem/CF1100FAtcoder 1750,Luogu 2100+,CF1950https://www.luogu.com.cn/problem/P5442https://www.cnblogs.com/flashhu/p/9480669.htmlhttps://vjudge.net/problem/LibreOJ-10180https://www.luogu.com.cn/problem/P5437https://vjudge.net/problem/HDU-4918HduOJ 4918P5311P3332CF1326D2https://www.luogu.com.cn/article/mnxc2701https://www.luogu.com.cn/problem/P15101https://vjudge.net/contest/778933#problem/Ghttps://vjudge.net/contest/785234#problem/Fhttps://www.luogu.com.cn/problem/P3813https://www.luogu.com.cn/problem/SP6172https://vjudge.net/contest/781857#problem/Fhttps://www.luogu.com.cn/problem/P4331```js// ==UserScript==// @name 喵喵// @namespace http://tampermonkey.net/48 行未改动});})();```绿蓝,黄辅助,紫次之,紫部分分,再其次橙180 黄,100 蓝,53->100+ 紫【模板】最小表示法($\sqrt{}$)、点分治($\sqrt{}$)、BSGS($\sqrt{}$)、后缀排序($\sqrt{}$)、FFT($\sqrt{}$)、扫描线($\sqrt{}$)、线性基($\sqrt{}$)、边双联通分量($\sqrt{}$)、最大流(/加强版)($\sqrt{}$)、线性规划($\sqrt{}$)、一般图最大匹配、常系数齐次线性递推、Stern-Brocot 树https://www.luogu.com.cn/team/78960https://www.luogu.com.cn/article/4qsgz804https://www.luogu.com.cn/training/692077https://www.luogu.com.cn/training/486627https://www.luogu.com.cn/contest/228320https://www.luogu.com.cn/contest/226532https://www.luogu.com.cn/contest/210959https://www.luogu.com.cn/contest/127930https://www.luogu.com.cn/contest/203481https://www.luogu.com.cn/contest/163361https://www.luogu.com.cn/article/ei5wxl3shttps://www.luogu.com.cn/problem/list?type=luogu&difficulty=5&tag=6|48,57https://www.luogu.com.cn/problem/P5445https://www.luogu.com.cn/problem/list?type=luogu&difficulty=4&tag=38|48https://www.luogu.com.cn/problem/P1457https://www.luogu.com.cn/problem/P14521https://www.luogu.com.cn/problem/solution/P145211234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697048 行未改动119120121122https://www.luogu.com.cn/discuss/1441346$rest=27/29$$extra+29(6form11and23form12)$$m12\geq 1/d,m1d1tod12\geq 1/d$$Nothing$ $can$ $change$ $my$ $love$ $for$ $OI$.$I$ $am$ $an$ $OIer$.1. 邮寄2. 难度3. 学校5. 比赛6. 57. 资源2026.10.30 青题通过数量超过黄题祭2026.10.20 通过 1.2k 祭2026.10.18 等级分 1800 祭2026.8.4 通过 1.1k 祭2026.5.23 通过 1.02k 祭2026.5.16 通过 1k 祭2026.2.23 绿题通过数量超过红题祭,等级分 1600 祭Atcoder 1750,Luogu 2100+,CF1950绿蓝,黄辅助,紫次之,紫部分分,再其次橙180 黄,53->100+ 紫【模板】最小表示法($\sqrt{}$)、点分治($\sqrt{}$)、BSGS($\sqrt{}$)、后缀排序($\sqrt{}$)、FFT($\sqrt{}$)、扫描线($\sqrt{}$)、线性基($\sqrt{}$)、边双连通分量($\sqrt{}$)、最大流(/加强版)($\sqrt{}$)、线性规划($\sqrt{}$)、一般图最大匹配、常系数齐次线性递推、Stern-Brocot 树橙青蓝紫180,橙绿青紫220,青绿绿紫160,橙青蓝紫140CF2180Duser/137367水题:P3702,P4755,P3738,P3873,P3856,P4171,P3831,P4768,P9132正确的卡常方法:使用 fastio、在各种地方中增加剪枝、换一种语言、精细开 long long、将 vector 替换为前向星状物https://www.luogu.com.cn/record/182866375https://www.luogu.com.cn/record/255386029https://www.luogu.com.cn/record/174493368https://www.luogu.com.cn/record/212022749https://www.luogu.com.cn/team/78960https://www.luogu.com.cn/article/4qsgz804期望估值364```js// ==UserScript==// @name 喵喵// @namespace http://tampermonkey.net/48 行未改动});})();```
奖项
增加 1 行删除 0 行
122025 CSP-S 一等奖 · 204 分 · 第 2388 名2024 CSP-S 二等奖 · 160 分 · 第 5152 名1232026 CSP-S 一等奖 · 200 分 · 第 4247 名2025 CSP-S 一等奖 · 204 分 · 第 2388 名2024 CSP-S 二等奖 · 160 分 · 第 5152 名