题目链接:http://codeforces.com/problemset/problem/327/C There is a long plate s containing n digits. Iahub wants to delete some digits (possibly none, but he is not allowed to delete all the digits) to f
Matrix Power Series http://poj.org/problem?id=3233 Time Limit: 3000MS Memory Limit: 131072K Description Given a n × n matrix A and a positive integer k, find the
CF-678D 看求的和(a^n-1)/(a-1)按奇偶递推 #include<iostream>using namespace std;const long long m=1e9+7;long long mul(long long a,long long b){long long t=a%m,res=0;while(b){if(b&1){res+=t;if(