http://poj.org/problem?id=1106Time Limit:1000MSMemory Limit:10000KTotal Submissions:4488Accepted:2379DescriptionIn a wireless network with multiple tr...
分类:
其他好文 时间:
2014-07-27 22:54:59
阅读次数:
273
一、什么是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
在HTML中,通过Select设置multiple=“multiple”设置当前的框为多选框,也就意味着可以同时选择多个内容。在我们的系统中经常可以看到左右两侧的选择,甚至在腾讯的应用中,都有很多类似的功能实现。这种功能是非常实用的,就可以将它封装为一个标签,然后设置两个LIST进行内容的互换,这些对于项目组的快速开发是非常有帮助的,因为JSP的功能就是在于丰富的可以扩展的标签,难道不是么?
...
分类:
Web程序 时间:
2014-07-26 02:04:46
阅读次数:
296
/*引用过来的题意: 给出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
由于工作需求接触select框多选的情况,以下是我分享的代码,主要是进入页面默认选中、支持多选属性:1.html内容multiple=”multiple” 属性为多选属性 2.JQ代码$("#mySelect").click(function () { //select多选的情况下...
分类:
其他好文 时间:
2014-07-22 22:39:12
阅读次数:
258
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-07-22 22:35:53
阅读次数:
230
Mobile Services批量提交数据,参考了文章:Inserting
multiple items at once in Azure Mobile Services。里面其实已经介绍得比较清楚了,但由于是英文,而且有些地方交待得不清楚,也没有Android的示例,故下文以Android版本的开发为例作个补充。
首先在Mobile Services项目里新建AllToDoItems以及T...
分类:
其他好文 时间:
2014-07-22 22:33:56
阅读次数:
297
一些IOS开发的心得:1) [Multiple Threads] IOS多线程注意, 所有的UI操作都必须在主线程上:Any code that will update the UI should be done on the main thread. Data loading should typ...
分类:
移动开发 时间:
2014-07-21 23:31:02
阅读次数:
403
Least Common Multiple
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 29480 Accepted Submission(s): 11136
Problem Description
The le...
分类:
其他好文 时间:
2014-07-19 23:14:59
阅读次数:
244