一道找循环节的题,RE了很多发。要用到一个转换式子:a^b%c=[(a%c)^(b%phi(c)+phi(c))]%c#include#include#include#include#include#define ull unsigned long longusing namespace std;i... Read More
posted @ 2014-05-28 21:18 MoriMiya Views(156) Comments(0) Diggs(0) Edit