摘要:
https://scut.online/p/12 可以用矩阵快速幂来做。 阅读全文
摘要:
写了一个矩阵类,不用到处抄。默认是int矩阵。 阅读全文
摘要:
https://scut.online/p/15 样例错了,按题目说的去做就AC了。 反向搜索使得最终比较strncmp的时候复杂度下降了很多(虽然应该可行性剪枝也少了) cpp include using namespace std; typedef long long ll; char s[64 阅读全文