返回数据格式:{"total":7,"rows":[ {"id":1,"name":"All
Tasks","begin":"3/4/2010","end":"3/20/2010","progress":60,"iconCls":"icon-ok"}, {"id":2,"name":"Designi...
分类:
其他好文 时间:
2014-05-05 11:02:30
阅读次数:
355
题目题意:给n,求x;直接枚举肯定超时, 把给的式子变形, (y+x)(y-x) = n;令y-x =
b, y+x = a;枚举b, b 的范围肯定是sqrt(n), y = (a+b)/2; x = (a-b)/2;b越大, x越小, 所以倒着枚举b 1
#include 2 #include....
分类:
其他好文 时间:
2014-05-05 11:01:25
阅读次数:
244
题目链接:http://acm.nbut.edu.cn/Contest/view/id/70/problem/B.xhtml题意:给出n(\(n\leq
100000\))个正整数,考虑这个序列的连续的子序列的个数,将含有两个以上相同数字的子序列排除在外,将不同位置的相同序列算作两种,问这样的序列有...
分类:
其他好文 时间:
2014-05-05 11:00:58
阅读次数:
277
典型的最小生成树 然后求最大的一条边
附上链接http://cstest.scu.edu.cn/soj/problem.action?id=4339需要注意的是有可能有 "IMPOSSIBLE"
的情况这里用一个flag标记 记录所并的节点 只有flag = n时才能成功 负责就"IMPOSSIBL...
分类:
其他好文 时间:
2014-05-05 10:11:07
阅读次数:
394
数据库分页技术能够帮助浏览者更好的查看信息,不同数据库实现分页时的方法也各有不同。本文主要介绍几种不同数据库分页显示的实现方法以及高效率分页技术的三个方案。不同数据库分页技术的实现代码:1.Oracle:select
* from ( select query.*, rownum rn from (...
分类:
数据库 时间:
2014-05-05 09:55:47
阅读次数:
420
原题地址:http://www.rqnoj.cn/problem/90解题思路:题目看起来不太像动态规划。。。我用一个数组f[i][j]来表示在数组第i个元素的后面第一次出现j的位置,为-1则是没出现过。然后每次查找最大的位置即可。如题目例子中:f
1 3 5 2 4 1 3 5 2 2 2 2.....
分类:
其他好文 时间:
2014-05-05 09:55:18
阅读次数:
448
After a long and successful day of preparing food for the banquet, it is time to clean up. There is a list of n jobs to do before the kitchen can be closed for the night. These jobs are indexed from 1...
分类:
其他好文 时间:
2014-05-04 18:25:07
阅读次数:
384
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3143
把矩阵变成一行,然后计算位置,lrj给了线段树数组做法 但是我做的线段树空间过大,直接爆掉,所以换方法了
主要还是测试自己的线段树区间更新的模板
各种RE+WA之后AC,,,,,
...
分类:
其他好文 时间:
2014-05-04 18:06:36
阅读次数:
412
There are K nuclear reactor chambers labelled from 0 to K-1. Particles are bombarded onto chamber 0. The particles keep collecting in the chamber 0. However if at any time, there are more than N parti...
分类:
其他好文 时间:
2014-05-04 18:00:17
阅读次数:
372
查看一个数据库的所有表:SelectTABLE_NAMEFROM数据库名称.INFORMATION_SCHEMA.TABLESWhereTABLE_TYPE=‘BASETABLE‘(select*from表名where条件)查看一张表的表结构:sp_helptable_name(表名)获取的信息比较全sp_columnstable_name(表名)创建数据库:usemastergocreatedatabase..
分类:
数据库 时间:
2014-05-04 17:27:23
阅读次数:
456