摘要: 矩阵快速幂#include#include#include#includeusing namespace std;struct Matrix{ long long A[10][10]; Matrix operator*(Matrix b);};const long long MOD=10... 阅读全文
posted @ 2015-07-20 19:14 Fighting_Heart 阅读(137) 评论(0) 推荐(0)
摘要: 计算几何+贪心#include#include#include#includeusing namespace std;struct City{ int id; double J1;//距离第一条 double J2;//距离第二条 double X,Y; double ... 阅读全文
posted @ 2015-07-20 14:33 Fighting_Heart 阅读(156) 评论(0) 推荐(0)
摘要: 快速幂+找规律#include#include#include#include#includeusing namespace std;mapC;const int MOD=2008;int n;int fast_power(int a,int b){ int c=1; while(b!=... 阅读全文
posted @ 2015-07-20 10:37 Fighting_Heart 阅读(166) 评论(0) 推荐(0)