cf1278C——dp
摘要:
先预处理后一段的信息,然后前半段从前往后遍历一次,更新答案即可 #include<bits/stdc++.h> using namespace std; #define N 200005 int n,a[N]; map<int,int>mp; int main(){ int t;cin>>t; wh 阅读全文
posted @ 2019-12-27 19:40 zsben 阅读(161) 评论(0) 推荐(0)
posted @ 2019-12-27 19:40 zsben 阅读(161) 评论(0) 推荐(0)
posted @ 2019-12-27 19:01 zsben 阅读(156) 评论(0) 推荐(0)
posted @ 2019-12-27 17:46 zsben 阅读(185) 评论(0) 推荐(0)