题目链接:http://codeforces.com/problemset/problem/711/B 题意: 给你一个n * n 的矩阵, 其中除了含有一个 ”0“ 以外, 都是正整数, 问你是否存在一个大于 0 的数, 使得这个数取代 ”0“ 的位置后, 这个矩阵每行, 每列, 主副对角线上的数 ...
分类:
其他好文 时间:
2016-08-30 09:31:01
阅读次数:
298
题目链接: A. Bus to Udayland B. Chris and Magic Square C. Coloring Trees 分析: (做出几道说几道QAQ) A:简单模拟,把相邻OO改成++即可; B: 找magic number,找到满足每行和==每列和==两对角线和即可,只需先用两 ...
分类:
其他好文 时间:
2016-08-30 09:23:23
阅读次数:
321
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5834 题目大意: 一棵N个点的有根树,每个节点有价值ci,每条树边有费用di,节点的值只能取一次,边权每次经过都要扣,问从每一个节点开始走最大能获得的价值。 题目思路: 【树形动态规划】 首先用dfs ...
分类:
其他好文 时间:
2016-08-28 18:12:30
阅读次数:
178
构造。 先只考虑用$0$和$1$构造矩阵。 $n=1$,$\left[ 1 \right]$。 $n=3$,(在$n=1$的基础上,最外一圈依次标上$0$,$1$,$0$,$1$......) $\left[ {\begin{array}{*{20}{c}}0&1&0\\1&1&1\\0&1&0\e ...
分类:
其他好文 时间:
2016-08-28 11:01:10
阅读次数:
181
Magic boy Bi Luo with his excited tree Problem Description Bi Luo is a magic boy, he also has a migic tree, the tree has N nodes , in each node , ther ...
分类:
其他好文 时间:
2016-08-26 15:24:29
阅读次数:
198
Find an n?×?n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Find an n?×?n matrix with di ...
分类:
其他好文 时间:
2016-08-26 13:45:02
阅读次数:
165
传送门Find an n?×?nn?×?n matrix with different numbers from 11 to n2n^2, so the sum in each row, column and both main diagonals are odd.Input
The only line contains odd integer n(1?≤?n?≤?49).n (1?≤?n?≤...
分类:
其他好文 时间:
2016-08-24 14:45:25
阅读次数:
176
题目链接: C. Magic Odd Square Find an n?×?n matrix with different numbers from 1 to n2, so the sum in each row, column and both main diagonals are odd. Fi ...
分类:
其他好文 时间:
2016-08-23 23:29:53
阅读次数:
176
转自:http://www.cxyclub.cn/n/53914/ 开发工具 一套游戏开发工具,来自一些天才的开发者 Magic Tools Graphics Assets/Placeholders 2D Tools Spritesheet Tools Bitmap Compression Text ...
分类:
其他好文 时间:
2016-08-23 11:23:50
阅读次数:
199