2018.09.16 codeforces1041C. Coffee Break(双端队列)
传送门 真心sb题啊。 考场上最开始看成了一道写过的原题。。。 仔细想了一会发现看错了。 其实就是一个sb队列。 每次插入到队首去就行了。 代码:#include<bits/stdc++.h>#define N 200005using namespace std;inline int read(){ int ans=0; char ch=get...
原创
2018-09-16 20:40:33 ·
623 阅读 ·
0 评论