2019 ACM-ICPC 西安邀请赛 A C D L M (/签到题 题解)
ATasks上来以为DP 结果直接贪也是楞了#include <bits/stdc++.h>#define fastio ios::sync_with_stdio(false);cin.tie(0)using namespace std;#define int long longconst int maxn = 1e5 + 5 ;int a[maxn];sign...