摘要:
Link CF1100E Andrew and Taxi Description 给定一个有向图,改变其中某些边的方向,它将成为一个有向无环图。 现在求一个改变边方向的方案,使得所选边边权的最大值最小。 Solution 使得最大值最小,很明显二分答案。 对于二分的答案 \(x\),考虑如何判断是否 阅读全文
摘要:
只能处理两个 \(n\) 的排列的最长公共子序列。 映射存相对位置。 #include <bits/stdc++.h> using namespace std; template <typename T> void read(T &x) { x = 0; int f = 1; char c = ge 阅读全文