07 2015 档案

stiring 数..........
摘要:yi jing tong 阅读全文

posted @ 2015-07-20 10:15 AC_WQYYY 阅读(116) 评论(0) 推荐(0) 编辑

逆元
摘要:#include using namespace std;int inv(int a,int p){ if(a == 1) return 1; return inv(p%a,p)*(p-p/a)%p;}int main(){ int p,a; while(cin >> a >> p){ cout <... 阅读全文

posted @ 2015-07-12 16:26 AC_WQYYY 阅读(133) 评论(0) 推荐(0) 编辑

矩阵 构造 模板
摘要:F - Number Sequence#include#includeusing namespace std;struct mat{ int ans[2][2];};mat I,MID;int M;mat cal(mat a,mat b){ mat c; int i,j,k; for(i=0;i>=... 阅读全文

posted @ 2015-07-12 09:53 AC_WQYYY 阅读(129) 评论(0) 推荐(0) 编辑

广搜
摘要:#include #include#includeusing namespace std;struct node{int x,y;node(int x = 0,int y = 0){ this -> x = x; this -> y = y; }};queue A;int n,m,t;int xx,... 阅读全文

posted @ 2015-07-10 16:45 AC_WQYYY 阅读(148) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示