A. Scout YYF ITime Limit: 1000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainYYF is a couragous scout. Now he is on a danger...
分类:
其他好文 时间:
2014-07-27 22:04:39
阅读次数:
316
一、什么是routing(路由) Almost all non-trivial, non-demo Single Page App (SPA) require multiple pages. A settings page is different from a dashboard?view. The login page is different from an acc...
分类:
其他好文 时间:
2014-07-26 17:26:02
阅读次数:
493
Problem Description
ZCC loves playing cards. He has n magical cards and each has a number on it. He wants to choose k cards and place them around in any order to form a circle. He can choose any se...
分类:
其他好文 时间:
2014-07-26 03:02:26
阅读次数:
289
在HTML中,通过Select设置multiple=“multiple”设置当前的框为多选框,也就意味着可以同时选择多个内容。在我们的系统中经常可以看到左右两侧的选择,甚至在腾讯的应用中,都有很多类似的功能实现。这种功能是非常实用的,就可以将它封装为一个标签,然后设置两个LIST进行内容的互换,这些对于项目组的快速开发是非常有帮助的,因为JSP的功能就是在于丰富的可以扩展的标签,难道不是么?
...
分类:
Web程序 时间:
2014-07-26 02:04:46
阅读次数:
296
Among other things, Bob is keen on photography. Especially he likes to take pictures of sportsmen. That was the reason why he placed himself in position x0 of
a long straight racetrack and got ready...
分类:
其他好文 时间:
2014-07-25 11:26:31
阅读次数:
447
/*引用过来的题意: 给出N个数,问其中是否存在M个数使其满足M个数的和是N的倍数,如果有多组解, 随意输出一组即可。若不存在,输出 0。题解: 首先必须声明的一点是本题是一定是有解的。原理根据抽屉原理: 因为有n个数,对n个数取余,如果余数中没有出现0,根据鸽巢原理,一定有...
分类:
其他好文 时间:
2014-07-25 02:33:34
阅读次数:
200
求一组数据的最小公倍数。
先求公约数在求公倍数,利用公倍数,连续求所有数的公倍数就可以了。
#include
int GCD(int a, int b)
{
return b? GCD(b, a%b) : a;
}
inline int LCM(int a, int b)
{
return a / GCD(a, b) * b;
}
int main()
{
int T, m, a,...
分类:
其他好文 时间:
2014-07-24 23:13:03
阅读次数:
203
DescriptionMr. K. I. has a very big movie collection. He has organized his collection in a big stack. Whenever he wants to watch one of the movies, he...
分类:
其他好文 时间:
2014-07-24 21:58:12
阅读次数:
394
FroggerDescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans ...
分类:
其他好文 时间:
2014-07-24 21:18:13
阅读次数:
334
题目链接:http://acm.timus.ru/problem.aspx?space=1&num=1416Zaphod Beeblebrox — President of the Imperial Galactic Government. And by chance he is an owner ...
分类:
其他好文 时间:
2014-07-24 17:23:25
阅读次数:
327