摘要:
An Arc of Dream is a curve defined by following function: where a 0 = A0 a i = a i-1*AX+AY b 0 = B0 b i = b i-1*BX+BY What is the value of AoD(N) modu 阅读全文
摘要:
Arthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows: The starting position has a number of he 阅读全文
摘要:
#include #include #include #include #define LL long long using namespace std; typedef __int64 int64; const int N = 3; __int64 k , MOD = 1e9+7; int arr[50] ; struct Matrix{ int64 mat[N][N]; ... 阅读全文
摘要:
#include #include #include #include using namespace std; typedef __int64 int64; const int N = 10; const int MOD = 9973; int k,n; int arr[N],f[N]; struct Matrix{ int mat[N][N]; Matrix operato... 阅读全文