码迷,mamicode.com
首页 >  
搜索关键字:magic 魔方打印    ( 1247个结果
Codeforces 711B. Chris and Magic Square
题目链接:http://codeforces.com/problemset/problem/711/B 题意: 给你一个n * n 的矩阵, 其中除了含有一个 ”0“ 以外, 都是正整数, 问你是否存在一个大于 0 的数, 使得这个数取代 ”0“ 的位置后, 这个矩阵每行, 每列, 主副对角线上的数 ...
分类:其他好文   时间:2016-08-30 09:31:01    阅读次数:298
Codeforces Round #369 (Div. 2)
题目链接: 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
【树形动规】HDU 5834 Magic boy Bi Luo with his excited tree
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5834 题目大意: 一棵N个点的有根树,每个节点有价值ci,每条树边有费用di,节点的值只能取一次,边权每次经过都要扣,问从每一个节点开始走最大能获得的价值。 题目思路: 【树形动态规划】 首先用dfs ...
分类:其他好文   时间:2016-08-28 18:12:30    阅读次数:178
CodeForces 710C Magic Odd Square
构造。 先只考虑用$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
动态规划(树形DP):HDU 5834 Magic boy Bi Luo with his excited tree
非常难想的树形DP。 ...
分类:其他好文   时间:2016-08-28 08:42:00    阅读次数:254
2016中国大学生程序设计竞赛 - 网络选拔赛 C. Magic boy Bi Luo with his excited tree
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
codeforces 710C Magic Odd Square(构造或者n阶幻方)
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
Codeforces 710 C. Magic Odd Square(构造)——Educational Codeforces Round 16
传送门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
codeforces 710C C. Magic Odd Square(构造)
题目链接: 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
1247条   上一页 1 ... 71 72 73 74 75 ... 125 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!