Strange Class
Accepts: 519
Submissions: 1749
Time Limit: 2000/1000 MS (Java/Others)
Memory Limit: 65536/65536 K (Java/Others)
问题描述
在Vivid的学校里,有一个奇怪的班级(SC).在SC里,这些学生的名字非常奇怪。他们的名字形...
分类:
其他好文 时间:
2015-04-05 10:39:33
阅读次数:
121
Strange Class
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 74 Accepted Submission(s): 60
Problem Description
In Vivid’s schoo...
分类:
其他好文 时间:
2015-04-05 09:07:39
阅读次数:
217
中国剩余定理/扩展欧几里得 题目大意:求一般模线性方程组的解(不满足模数两两互质) solution:对于两个方程 \[ \begin{cases} m \equiv r_1 \pmod {a_1} \\ m \equiv r_2 \pmod{a_2} \end{cases} \] 我们可以列出.....
分类:
其他好文 时间:
2015-04-02 20:32:45
阅读次数:
126
题目链接:http://sfxb.openjudge.cn/dongtaiguihua/E/题目描述:4个柱子的汉诺塔,求盘子个数n从1到12时,从A移到D所需的最大次数。限制条件和三个柱子的汉诺塔问题相同。解题思路:采用动态规划算法的思路为先从将k个盘子使用4个柱子的方法从A移到B,然后将A上剩下...
分类:
其他好文 时间:
2015-04-01 00:14:13
阅读次数:
152
简单的广搜,一开始没有把re初始化,wa了好多次
#include
#include
#include
using namespace std;
int n,a,b;
int mapp[200+5];
int visit[200+5];
int re=-1;
struct stu
{
int s,t;
};
void bfs(int h)
{
stu x,y;
queueroot;
x....
分类:
其他好文 时间:
2015-03-31 22:30:11
阅读次数:
186
Problem Description
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at floor i,if you press the button "UP" , you will go u...
分类:
编程语言 时间:
2015-03-28 15:47:08
阅读次数:
262
Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. A...
分类:
其他好文 时间:
2015-03-19 13:08:22
阅读次数:
136
MVCSContext: the big picture 本篇基本上就是介绍Strange框架的基本方法使用与部署Unity3d项目,另外所有框架的思路都是一致的,让项目变得易于维护。现在让我们一起开始吧。 This section is basically a recipe for buildin...
分类:
Web程序 时间:
2015-03-17 19:57:20
阅读次数:
716
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1548There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 ...
分类:
其他好文 时间:
2015-03-17 13:54:16
阅读次数:
194