摘要:
题意大致是这样的,一共要放 m 段括号序列,每一段放 n 个括号,也就是放 n*m个括号,再每一段中的 n 个位置分别有放左括号和右括号的代价,问最终摆放出合法的括号序列的最小代价是多少。 另外保证,n小于20,m小于1e7,m是整数 这个大概是我一年前多做的,当时在21组上T了,然后就放弃了,我也 阅读全文
摘要:
np.arange(int a) 生成一个一维array,元素个数是a个,元素是0到a-1 注意arange不能直接生成多维array np.arange(int a).reshape(int b,int c) 生成一个一维array,个数为a,然后改成二维数组b*c,b*c=a;也可更多维 res 阅读全文
摘要:
DT is a big fan of digital products. He writes posts about technological products almost everyday in his blog.But there is such few comments of his po 阅读全文