https://www.luogu.com.cn/article/64n5mmej
https://www.luogu.com.cn/problem/CF1093E
https://www.luogu.com.cn/problem/CF600E
https://www.luogu.com.cn/article/hw36k67h
- 5
- 计划
- 资源
- 比赛
https://vjudge.net/problem/QOJ-16808
橙青蓝紫180,橙绿青紫220,青绿绿紫160,橙青蓝紫140
P15762 P6624 P14538 CF2180D CF2180C AT_arc192_a AT_arc069_c P17568 P17571 P17566 P17567 P13564 contest/23456 user/43123 user/1053106 user/565742 user/672336 user/419487
user/704275
https://codeforces.com/problemset/problem/1110/D
水题:P3702,P4755,P3738,P3873,P3856,P4171,P3831,P5376,P3287,P4768,P9132
正确的卡常方法:
使用 fastio、在各种地方中增加剪枝、换一种语言、精细开 long long、将 vector 替换为前向星状物
.
.
期望估值364
2026.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/nyiwisd6
https://www.luogu.com.cn/record/182866375
https://www.luogu.com.cn/record/255386029
https://www.luogu.com.cn/record/174493368
https://www.cnblogs.com/The-Shadow-Dragon/p/18048090
https://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=461
https://www.luogu.com.cn/problem/P7402
https://www.luogu.com.cn/problem/P10437
https://www.luogu.com.cn/problem/P14468
contest 27 页
猫石游戏、月影戀
#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);
}
}
}
else
size[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;
}
}
#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.luogu.com.cn/problem/P3956
https://www.luogu.com.cn/problem/P4525
https://www.luogu.com.cn/problem/list?type=luogu&difficulty=6&page=2&tag=523
https://www.luogu.com.cn/problem/list?type=luogu&difficulty=6&page=2&tag=523
https://www.cnblogs.com/rrsb/p/9867233.html
https://www.luogu.com.cn/problem/P8079
https://blog.csdn.net/wu_tongtong/article/details/78785836
https://www.luogu.com.cn/problem/P4406
https://www.luogu.com.cn/problem/AT_agc032_b
https://www.luogu.com.cn/problem/P2906
https://www.luogu.me/article/5uabdb4t
https://www.luogu.com.cn/problem/P15121
https://www.luogu.com.cn/problem/SP2939
https://www.luogu.com.cn/problem/CF1100F
Atcoder 1750,Luogu 2100+,CF1950
https://www.luogu.com.cn/problem/P5442
https://www.cnblogs.com/flashhu/p/9480669.html
https://vjudge.net/problem/LibreOJ-10180
https://www.luogu.com.cn/problem/P5437
https://vjudge.net/problem/HDU-4918
HduOJ 4918
P5311
P3332
CF1326D2
https://www.luogu.com.cn/article/mnxc2701
https://www.luogu.com.cn/problem/P15101
https://vjudge.net/contest/778933#problem/G
https://vjudge.net/contest/785234#problem/F
https://www.luogu.com.cn/problem/P3813
https://www.luogu.com.cn/problem/SP6172
https://vjudge.net/contest/781857#problem/F
https://www.luogu.com.cn/problem/P4331
// ==UserScript==
// @name 喵喵
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 喵喵
// @author clo201111LHQFantasticVegetable
// @match *://www.luogu.com.cn/*
// @match *://www.luogu.me/*
// @match *://vjudge.net/*
// ==/UserScript==
(function() {
'use strict';
const targetRegex = /([,。?:!;、‘’])/g;
function processNode(node) {
if (node.nodeType === Node.TEXT_NODE && node.textContent.trim() !== "") {
const originalText = node.textContent;
const newText = originalText.replace(targetRegex, '喵$1');
if (newText !== originalText) {
node.textContent = newText;
}
}
}
function walk(root) {
const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT, null, false);
let node;
while (node = walker.nextNode()) {
processNode(node);
}
}
walk(document.body);
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
mutation.addedNodes.forEach((node) => {
if (node.nodeType === Node.TEXT_NODE) {
processNode(node);
} else {
walk(node);
}
});
});
});
observer.observe(document.body, {
childList: true,
subtree: true
});
})();
绿蓝,黄辅助,紫次之,紫部分分,再其次橙
180 黄,100 蓝,53->100+ 紫
【模板】最小表示法()、点分治()、BSGS()、后缀排序()、FFT()、扫描线()、线性基()、边双联通分量()、最大流(/加强版)()、线性规划()、一般图最大匹配、常系数齐次线性递推、Stern-Brocot 树
https://www.luogu.com.cn/team/78960
https://www.luogu.com.cn/article/4qsgz804
https://www.luogu.com.cn/training/692077
https://www.luogu.com.cn/training/486627
https://www.luogu.com.cn/contest/228320
https://www.luogu.com.cn/contest/226532
https://www.luogu.com.cn/contest/210959
https://www.luogu.com.cn/contest/127930
https://www.luogu.com.cn/contest/203481
https://www.luogu.com.cn/contest/163361
https://www.luogu.com.cn/article/ei5wxl3s
https://www.luogu.com.cn/problem/list?type=luogu&difficulty=5&tag=6|48,57
https://www.luogu.com.cn/problem/P5445
https://www.luogu.com.cn/problem/list?type=luogu&difficulty=4&tag=38|48
https://www.luogu.com.cn/problem/P1457