ACM串匹配类型题
文章平均质量分 65
标哥-iOS攻城狮
现从事iOS开发,业余研究HTML5+CSS3+PHP+Mysql,cocos2dx中...
展开
-
括号匹配
括号配对问题时间限制:3000 ms | 内存限制:65535 KB难度:3描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0字符串S(S的长度小于10000,且S不是空串),测试数据组数少于5组。数据保证S中只含有"[","]","(",")"四种字符输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出原创 2012-10-03 08:21:23 · 1723 阅读 · 1 评论 -
串操作
DescriptionThe American English slash (/) is a punctuation mark. In the early modern period, in the Fraktur script, whichwas widespread through Europe in the Middle Ages, one slash(/) represen原创 2012-10-02 11:03:43 · 604 阅读 · 0 评论 -
1077: Slash
1077: SlashTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 3 Solved: 2[Submit][Status][Web Board]DescriptionThe American English slash (/) is a punctuation mark. In the early modern period,原创 2012-10-09 07:04:37 · 636 阅读 · 0 评论 -
1052: Dinner
1052: DinnerTime Limit: 1 Sec Memory Limit: 32 MBSubmit: 50 Solved: 9[Submit][Status][Web Board]DescriptionLittle A is one member of ACM team. He had just won the gold in World Final原创 2012-10-09 07:13:09 · 537 阅读 · 0 评论 -
1086: 弟弟的作业
Description你的弟弟刚做完了“100以内数的加减法”这部分的作业,请你帮他检查一下。每道题目(包括弟弟的答案)的格式为a+b=c或者a-b=c,其中a和b是作业中给出的,均为不超过100的非负整数;c是弟弟算出的答案,可能是不超过200的非负整数,也可能是单个字符"?",表示他不会算。Input输入文件包含不超过100行,以文件结束符结尾。每行包含一道题目,格式保原创 2012-10-09 07:18:26 · 736 阅读 · 0 评论 -
Navigation
#include #include #include #include using namespace std;void ClearStack(stack &s);string getCurentWeb(const string &cmd);int main(){ stack backward,//已经访问的网页 forward; /原创 2012-10-31 16:22:09 · 424 阅读 · 0 评论