与前一题类似,也是BFS+记录路径,但是有很多BUG点,第一MOD操作与%不同i,其实我做的时候注意到了我们可以这样做(N%K+K)%K就可以化为正数,但是有一点要注意N%K%M!=N%M%K;因为我们在操作中会对%操作执行N=N%M%K,然后下某次再执行N=N%M%K;因为但是这样就顺序乱掉了。但...
分类:
其他好文 时间:
2014-07-22 22:53:33
阅读次数:
201
There are n children in Jzzhu's school. Jzzhu is going to give some candies to them. Let's number all the children from 1 to n.
The i-th child wants to get at least ai candies.
Jzzhu asks childre...
分类:
其他好文 时间:
2014-07-22 22:49:13
阅读次数:
237
Problem A - No Tipping
As Archimedes famously observed, if you put an object on a lever arm,it will exert a twisting force around the lever's fulcrum. Thistwisting is called torque and is equal to th...
分类:
其他好文 时间:
2014-07-19 23:13:39
阅读次数:
343
//有一个问题没有解决:输入begin,若用户输入了char类型的数据就成了个死循环了;
//其他函数没有复制过来,这里只有main函数;
int main()
{
int Chinese(int i, int b = 0); int English(int i, string word, int b = 0); void Grade(int i, float j, int k, int ...
分类:
其他好文 时间:
2014-07-19 23:12:39
阅读次数:
310
如何向SQL Server 2005中插入中文?向SQL Server 2005中插入中文数据后,查询出来的结果是???,根本就不显示中文解决方法:1 关于数据库排序规则,将SQL_Latin1_General_CP1_CI_AS改成Chinese_PRC_CI_AS ,看一下是否可以解决这个问题,...
分类:
数据库 时间:
2014-07-19 16:35:35
阅读次数:
251
一. 软件下载
1. AppServ 2.5.10包含的软件有Apache、Apache Monitor、PHP、MySQL、PHP-Nuke、phpMyAdmin。
2. 下载地址: http://www.appservnetwork.com/index.php?newlang=chinese
二. 软件介绍:
1.Apache服务器
安装位置:C:\A...
分类:
Web程序 时间:
2014-07-19 12:06:24
阅读次数:
205
Not so MobileBefore being an ubiquous communications gadget, a mobile was just a structure made of strings and wires suspending colourfull things. Th....
分类:
其他好文 时间:
2014-07-18 13:34:02
阅读次数:
242
这一讲我们集中讲解类和他的一些特性.首先我们从自定义一个有理数类来开始.
在C语言中有一个关键字: struct ,用来创建一个结构体类型.但是在C++中这个关键的含义就不仅仅如此了,下面我们可以看下示例:
/// Represent a rational number.
struct rational
{
int numerator; ///< numerator gets th...
分类:
编程语言 时间:
2014-07-18 11:31:36
阅读次数:
422
Blue Jeans
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
The Genographic Project is a research partnership between IBM and Th...
分类:
其他好文 时间:
2014-07-18 11:23:53
阅读次数:
224