有大佬用DP做的
我用的贪心
等以后学了DP再来补刀
#include<bits/stdc++.h>
using namespace std;
//typedef int long long;
int n,ct,End;
struct node{
有大佬用DP做的
我用的贪心
等以后学了DP再来补刀
#include<bits/stdc++.h>
using namespace std;
//typedef int long long;
int n,ct,End;
struct node{