各种算法模板
离散化1.#include <iostream>#include <algorithm>using namespace std;const int MAXN = 1005;int n;int rev[MAXN], a[MAXN];int main() { cin >> n; for(int i = 1; i <= n; i++) cin >> a[i], rev[i] = a[i]; sort(rev + 1, rev + 1
复制链接