摘要: 时间限制:0.25s空间限制:4M题意: 将n(n#include #include using namespace std;int n,m,x,y,tol;bool g[209][209];int f[30009];int dfs(int x){ for(int i=1;i<=n;... 阅读全文
posted @ 2014-08-15 16:03 keambar 阅读(248) 评论(0) 推荐(0)
摘要: 简单的贪心。优先weight最大的,优先匹配Q值大的地区code#include #include #include using namespace std;struct node { int num, level, weght, p;} f[209], g[17009];int ans[17009... 阅读全文
posted @ 2014-08-15 15:07 keambar 阅读(198) 评论(0) 推荐(0)
摘要: 时间限制:0.5s空间限制:15M题意: 给出一个N*M的矩阵A,计算矩阵B,满足B[i][j]=min{ A[x][y]:(y>=j) and ( x>=i+j-y )}Solution : 如图方式从右下角遍历矩阵,那么可令B[i][j]=min(A[i][j],B[... 阅读全文
posted @ 2014-08-15 10:27 keambar 阅读(190) 评论(0) 推荐(0)
摘要: 时间限制:0.75s空间限制:65M题意: 在一个n*m(n,m> 12) % 16, (record >> 8) % 16, (record >> 4) % 16, record% 16, k - r + l - 1)得到 这道题需要注意的地方有很多,不一一列举.总的来说是一道值得一... 阅读全文
posted @ 2014-08-15 01:38 keambar 阅读(918) 评论(0) 推荐(0)