学会了快速求幂大法 不过怎么感觉也不是优势特别大,测试了下,比直接算好像不会快。。。 #include<cstdio>#include<cstring>#include<algorithm>#define MAX 100100#define MOD 10000009using namespace std;long long dg(long long m,long long n)
题目链接: POJ 1636 Prison rearrangement Prison rearrangement Time Limit: 3000MS Memory Limit: 10000KTotal Submissions: 2194 Accepted: 984 Description In order to lower the risk of riots an