摘要:
这题在比赛的时候耗了我近两个小时,还是没做出来。用到逆元和期望。赛前掌握的不够好,现在看了几位大佬的代码之后把这题补上。 代码参考来源:https://blog.csdn.net/qq_36797743/article/details/85834812 1097D - 20 GNU C++11 Ha 阅读全文
摘要:
矩阵快速幂 #include"bits/stdc++.h" using namespace std; const int mod = 9973; int n, k; struct Mat { int mat[11][11]; Mat() { memset(mat, 0, sizeof(mat)); 阅读全文