Given a integer N. Find number of possible ways to represent N as a sum of at most five cubes. Input First line contains N. 1<=N<=125000. Output Outpu ...
分类:
其他好文 时间:
2017-07-12 01:10:33
阅读次数:
203
Weird Game Yaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn't show up, Yaroslav and Andre ...
分类:
其他好文 时间:
2017-07-12 01:03:12
阅读次数:
214
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille ...
分类:
其他好文 时间:
2017-07-10 16:40:00
阅读次数:
156
题目链接:点击打开链接 题意: 给定n个数。k个感叹号,常数S 以下给出这n个数。 目标: 随意给当中一些数变成阶乘。至多变k个。 再随意取一些数,使得这些数和恰好为S 问有多少方法。 思路: 三进制状压。中途查找。 #include <stdio.h> #include <vector> #inc ...
分类:
其他好文 时间:
2017-07-01 14:38:39
阅读次数:
165
UVA 10601 - Cubes 题目链接 题意:给定正方体12条棱的颜色,要求用这些棱能组成多少不同的正方体 思路:利用ploya定理去求解,分类讨论,正方体一共24种旋转。相应的旋转方式有4种: 1、不动 2、沿两面中点连线旋转 3、沿对顶点连线旋转 4、沿两棱中点连线旋转 简单推算出每种情况 ...
分类:
其他好文 时间:
2017-05-24 12:35:06
阅读次数:
182
Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Every cube has a number ai, which is written on it. ...
分类:
其他好文 时间:
2017-05-01 13:38:41
阅读次数:
222
题意:给一个数N,求N最少由多少个数的立方构成,并输出这些数。 做法:DFS + 剪枝,剪枝的边界很很很重要! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #include < ...
分类:
其他好文 时间:
2017-04-18 22:06:41
阅读次数:
176
B - Dungeon Master B - Dungeon Master You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes whi ...
分类:
其他好文 时间:
2017-04-17 21:05:46
阅读次数:
264
题目描述 You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with ...
分类:
其他好文 时间:
2017-03-04 14:08:58
阅读次数:
183
http://codeforces.com/gym/101257/problem/A 把它固定在(0,0, 0)到(2, 2, 2)上,每次都暴力dfs检查,不会超时的,因为规定在这个空间上,一不行,就会早早退出。 这样写起来比较好写。 #include <cstdio> #include <cst ...
分类:
其他好文 时间:
2017-02-18 23:59:20
阅读次数:
259