摘要:
题目:DescriptionThe only printer in the computer science students' union is experiencing an extremely heavy workload. Sometimes there are a hundred jobs in the printer queue and you may have to wait for hours to get a single page of output.Because some jobs are more important than others, the Hack 阅读全文
摘要:
题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=27454#overview比赛.........还是英语没学好啊........有些题目看不懂.............= =A.Printer Queue//单独讲.............B.Parencodings很简单.......我是开了三个数组a[n],b[n],c[n]-------------a[n]代表输入的n个数,b[n]代表是输出的n个数,c[n]代表n个左括号的状态(配对了还是没有配对);b[0]=1;若a[i]-a[i-1]>0,那么i右括号所 阅读全文