![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
Northenwood
和其光而同其尘
展开
-
2133
#include<stdio.h> #include<string.h> int ls[1000]; char a[1000]; int main() { while(~scanf("%s",a)) { int i, k = -1; for(i = 0; a[i] != '#'; i++) { ...转载 2018-08-22 11:26:52 · 175 阅读 · 0 评论 -
括号匹配
数据结构实验之栈与队列四:括号匹配 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Problem Description 给你一串字符,不超过50个字符,可能包括括号、数字、字母、标点符号、空格,你的任务是检查这一串字符中的( ) ,[ ],{ }是否匹配。 Input 输入数据有多组,处理到文件结束。 Output 如果...原创 2018-10-18 15:12:58 · 162 阅读 · 0 评论