Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2013年1月17日

摘要: hdu 2262 Where is the canteen http://acm.hdu.edu.cn/showproblem.php?pid=2262 2013-1-20期望。每个点列出一个方程,高斯消元求解View Code 1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 6 const int N=20; 7 const int dx[]={1,0,-1,0}; 8 const int dy[]={0,1,0,-1}; 9 阅读全文
posted @ 2013-01-17 23:40 Qiuqiqiu 阅读(518) 评论(0) 推荐(0) 编辑
 
摘要: hdu 3949 XOR http://acm.hdu.edu.cn/showproblem.php?pid=3949 2013-1-18给n个数,由这些数异或得到新的数,求第k小的数把所有数看做一个向量空间,先求出向量空间的一个基矩阵中mt(r,c)=a[r]>>(m-1-c) 化为约化阶梯矩阵View Code 1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 6 typedef long long LL; 7 co 阅读全文
posted @ 2013-01-17 18:36 Qiuqiqiu 阅读(255) 评论(0) 推荐(0) 编辑