J - 括号匹配 Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Description We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a…
当时看到(二)就把(一)做了, 一很容易,这道题纠结了好几天,直到今晚才看懂别人的代码谢,勉强才写出来.................... 不愧是难度6的题. #include <stdio.h> #include <string.h> #define N 101 #define MAX 0x7fffffff int d[N][N]; char ch[N]; int main() { int n,i,j,k,len,m,tmp; scanf("%d",&am…