hdu 1702 :ACboy needs your help again!(练习使用双端队列)
摘要:
题目就是双端队列的基本操作#include<iostream>#include<stdio.h>#include<deque>//双端队列头文件#include<string.h>using namespace std;int main(){ int n,m,x; char s[5],s1[4],s2[4]; while(scanf("%d",&n)!=EOF) { while(n--) { deque<int>q;//双端队列的定义(并清空) scanf("%d %s",&m, 阅读全文
posted @ 2013-04-05 21:31 雨钝风轻 阅读(219) 评论(0) 推荐(0) 编辑