https://codeforces.com/gym/101853/problem/G
当板子记住把
#include<bits/stdc++.h>
using namespace std;
const int MAX=5e5+10;
typedef long long ll;
ll BSGS(ll a,ll b,ll m)
{
a%=m;
b%=m;
if
https://codeforces.com/gym/101853/problem/G
当板子记住把
#include<bits/stdc++.h>
using namespace std;
const int MAX=5e5+10;
typedef long long ll;
ll BSGS(ll a,ll b,ll m)
{
a%=m;
b%=m;
if