西安集训B层Day1 test 问题 A: 旅行日记

这道题其实还是比较简单的模拟,考试的时候我觉得可以用二分答案,没有做出来。只能得50分部分分,但这道题还有一个坑点就是输入时要将日期从大到小重新排序。 code #include<bits/stdc++.h> using namespace std; const int maxn=1e6+7; int n,m; struct node{int h;int d;}ljb[2*maxn]; int h
相关文章
相关标签/搜索