解题思路
因为取模的数很小,所以暴力找打循环节,然后求解。
代码
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
const int maxn = 46340;
typedef int Mat[
因为取模的数很小,所以暴力找打循环节,然后求解。
#include <cstdio>
#include <cstring>
#include <cmath>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
const int maxn = 46340;
typedef int Mat[