codeforces #642(div3) D. Constructing the Array(优先队列)
题目链接:D. Constructing the Array
input
6
1
2
3
4
5
6
1
1 2
2 1 3
3 1 2 4
2 4 1 3 5
3 4 1 5 2 6
题意很简单,就是让你找最长的0串,然后在这串中间加上当前操作数。比赛的时候想错了,总想是到规律题,其实是模拟。(STL NB)
#include<bits/stdc++.h>
#include<stdio.h>
#include<string.h>
#include<std
原创
2020-05-15 11:32:36 ·
210 阅读 ·
2 评论