题目链接:
https://nanti.jisuanke.com/t/41299
题意:
就是个a的a次方的a次方的a次方以此类推b次问这玩意mod m 等于多少?
代码:
#include<bits/stdc++.h>
using namespace std;
inline int re()
{
char c=getchar();
while(((c<'0')||(c>'9'))&&(c!='-')) c=getchar();
int x,t;
if(c=='-') t=-1,x=0;
else x=c-'0',t&