摘要:
#include using namespace std; int x,p,k; long long f(int a,int b){ if(b==0) return 1%k; if(b==1) return a%k; long long ans=f(a,b/2)%k; ans*=ans%k; if(b%2==1) ans*=a%k; re... 阅读全文
摘要:
#define M 10010 int STACK[M],top=0; int DFN[M],LOW[M],Index=0; bool InStack[M]; int cnumber=0; vector Edge[M]; vector C[M]; int Inc[M],cD[M]; void tarjan(int i){ int j; Index++; DFN[i]=... 阅读全文