摘要:
欢迎欢迎 阅读全文
摘要:
第6题 \begin{align} & {{\text{a}}_{1}}=1,{{a}_{n}}={{a}_{n-1}}+{{a}_{n-2}}+\ldots \ldots +{{a}_{1}}(n\ge 2) \\ & {{a}_{n}}={{S}_{n-1}}={{S}_{n}}-{{S}_{n 阅读全文
摘要:
50aa (boom/(maya))ba aaca (xx)da (wu)+(ca)ea (boom)ab eabb ((maya)+(xx)-(ca)+ea)cb (boom)/((xx))*(boom)db (((wu)*ab)+((da)-(da))+maya)eb wuac ((((xx)/ 阅读全文
摘要:
1 #include 2 using namespace std; 3 char str[102]; 4 int dp[1020][1020]; 5 int n; 6 bool check(int i,int j) 7 { 8 if((str[i-1]=='('&&str[j-1]==')')||(str[i-1]=='['&&str[j-1]==']')) 9 ... 阅读全文
摘要:
感谢gjznb大佬的帮助Orz 阅读全文
摘要:
强烈安利gjz的题解,看一遍即可ac:传送门 进入重点: 为啥$to=(dp[i][k][ii]+dp[k+1][j][jj])/2$ 位运算重点:a&b=a+b-a|b 为啥呢? 例子: a : 100101 b : 010101 a&b : 0 0 0 1 0 1 a+b : 1 1 1 0 1 阅读全文
摘要:
原题链接 这题是个大好题,良心啊!我要写题解啊啊啊...交这题的全都是tarjan的大佬啊,没有kosaraju,我来水一发至于效率吗,由于STL(咳咳),感人的很TAT 阅读全文
摘要:
说实话这题确实挺菜的。。。 废话少说,直接上代码^O^ Code: 阅读全文