摘要:
"Link" 同上一题。 阅读全文
posted @ 2019-09-24 16:11
Shiina_Mashiro
阅读(88)
评论(0)
推荐(0)
摘要:
"题目" 1、$a_\le b_i$的在前面。 显然。 2、前面的按$a_i$升序排序。 这样会尽可能地让要等的时间变少。 3、后面的按$b_i$降序排序。 反过来看,跟2一样。 真要严格证明的话交换法吧。 c++ include using namespace std; const int N=1 阅读全文
posted @ 2019-09-24 15:38
Shiina_Mashiro
阅读(147)
评论(0)
推荐(1)
摘要:
"题目" 如果我们最大比对面最大大,那么直接用。 如果我们最小比对面最小大,那么直接用。 否则用我们最小去换对面最大。 c++ include using namespace std; inline int read() { register int x=0; register char c=get 阅读全文
posted @ 2019-09-24 15:15
Shiina_Mashiro
阅读(98)
评论(0)
推荐(0)

浙公网安备 33010602011771号