[title record] - the 45th international undergraduate Programming Competition (ICPC) Asian regional competition (Kunming)
The 45th international undergraduate Programming Competition (ICPC) Asian regional competition (Kunming)
We only did H, water..
Author's evaluation and partial solution
How to evaluate the ICPC Kunming division in 2021?
Partial solution
ICPC Kunming travel notes (2021.4.3)
B Chessboard upper and lower bounds minimum cost maximum flow
...
Posted by bigbillhill on Thu, 18 Nov 2021 03:20:36 -0800
Luogu P1113 chores (DP, topology sorting)
[Title Description] John's farm has a lot of chores to complete before milking the cows. Each chore takes a certain amount of time to complete it. For example, they have to gather the cows, drive them into the barn, wash their breasts and do some other work. It is necessary to finish all the chores as soon as possible, because there is more tim ...
Posted by cjl on Wed, 17 Nov 2021 17:04:04 -0800
[joint examination of noip improvement group on November 11, 2021] happy bean problem solution
[joint examination of noip improvement group on November 11, 2021] happy bean problem solution
Description
See for yourself
Solution
Think about the partial score of m=0 first Find the shortest path from each point to all other points
a
x
...
Posted by gobbles on Fri, 12 Nov 2021 12:58:20 -0800
Notes on basic course of acwing algorithm
Chapter III Search and Graph Theory
1. Depth-first search (dfs)
Search down from start to finish, find the bottom and backtrace down to finish, use stack to store data, have two concepts of backtrace and pruning, do not have the shortest
Array Array (Violent Search, Full Array)
To restore the state to its original state after backtracking
...
Posted by darkerstar on Wed, 10 Nov 2021 15:05:55 -0800
Multi school sprint NOIP simulation 27 - Super doubling - reconstruction tree
No link is provided for this question
Title Description
Given a tree. We think one
x
→
y
x\rightarrow y
Simple path of x → y(
x
≠
...
Posted by phpnewbie911 on Wed, 10 Nov 2021 08:11:15 -0800
2019 CCPC-Jiangxi Provincial Competition (Repeat Competition) Part of the Questions
Catalog
B - Wave
C - String
D - Traffic
F - Budget
G - Worker
H - Class
B - Wave
Topic:
Given a sequence of n integers ranging from 1 to c, find a subsequence that has the same number on even digits, the same number on odd digits, and different numbers on even and odd digits.
Output the length of the longest subsequence that meets ...
Posted by adredz on Wed, 10 Nov 2021 01:43:01 -0800
Running in the tree [Eulerian sequence] [Conclusion]
>Link
ybtoj running in trees
>Description
Xiao A will run on A rooted tree with 1 as the root and N nodes every day. At the beginning, each node has an obstacle. Each obstacle will move periodically in the subtree with the initial point as the root according to the order of depth first, and only one edge will be moved per unit time. ...
Posted by demonicfoetus on Mon, 08 Nov 2021 17:47:46 -0800
Analysis of cost flow
Template
EK
#include<iostream>
#include<cstdio>
#include<cstring>
#include<queue>
using namespace std;
inline int read()
{
int x=0,f=1;
char ch=getchar();
while(ch<'0'||ch>'9'){ if(ch=='-') f=-1;ch=getchar(); }
while(ch>='0'&&ch<='9'){ x=(x<<1)+(x<<3)+(ch^48);ch=getchar(); }
ret ...
Posted by gukii on Sat, 06 Nov 2021 20:09:01 -0700
Data structure - diagram
1, Basic concept of graph
Graph - graph G is composed of two sets V(G) and E(G), marked as G=(V,E), where V(G) is a non empty finite set of vertices, E(G) is a finite set of edges, and edges are disordered or ordered pairs of vertices.
Graph cannot be empty
1. Terms and definitions of drawings
1) Directed graph
If E is a finite s ...
Posted by metroblossom on Fri, 05 Nov 2021 12:52:12 -0700
Cost flow duality
Some pre cheese you may need:
Linear programming problem linear programming problem is the following problem:
There are \ (n \) non negative variables \ (x \) and \ (m \) constraints, such as:
\[\sum_j a_{i,j}x_j\leq b_i
\]It is required to maximize the value of \ (\ sum_i c_ix_i \), as follows:
\[\max c^{\mathsf T} x\\
s.t.\\
Ax\leq b\\
x\geq ...
Posted by BZorch on Thu, 04 Nov 2021 20:52:28 -0700