目录最大连续序列和不连续序列的最大和1.最大连续序列和是指所有连续子序列元素和最大的那个。#include#includeusing
namespace std;int main(){ freopen("in.txt","r",stdin); int n;
while(cin>>n) { int a...
分类:
其他好文 时间:
2014-05-22 11:49:54
阅读次数:
273
本文对Java泛型进行了全面的总结。文章内容包括普通泛型、通配符、受限泛型、泛型接口、泛型方法、返回泛型类型实例等等。AD:
WOT2014课程推荐:实战MSA:用开源软件搭建微服务系统虽然Scala创始人Martin
Odersky说当年正是因为Java泛型的丑陋,所以才想到要创建一个新的语言,不...
分类:
编程语言 时间:
2014-05-22 06:09:40
阅读次数:
328
#include #include #include using namespace std;int
main(){ int n; while(cin >> n) { stack one; string od1,od2; bool stat...
分类:
其他好文 时间:
2014-05-21 23:48:58
阅读次数:
370
--1、while循环declare @sum intdeclare @i intset
@i=1set @sum=0while(@i90) print @iendprint @sum--2、goto语句declare @num intset
@num=100flag:print @numsel.....
分类:
数据库 时间:
2014-05-21 22:20:40
阅读次数:
468
堆栈和队列是最基本的两个ADT,简单但是重要。先讲堆栈在计算机中的应用。堆栈:1.用于符号匹配。在编译器的语法检查中,一个过程就是检查各种括号是否匹配,比如
([]) ,这就是匹配的,而 {[}] 就不匹配了。可以用堆栈来实现括号匹配。具体算法如下:建立一个空的堆栈。 while( 文件没有结...
分类:
其他好文 时间:
2014-05-21 19:52:47
阅读次数:
348
function
is_mobile(){$regex_match="/(nokia|iphone|android|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|";$regex_match.="htc|dopod|bl...
分类:
移动开发 时间:
2014-05-21 19:02:55
阅读次数:
302
There are two types of non-blocking thread synchronization algorithms
- lock-free, and wait-free. Their meaning is often confused. In lock-free systems, while any particular computation may be block...
分类:
其他好文 时间:
2014-05-21 10:27:20
阅读次数:
410
Tour
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3470
Accepted: 1545
Description
John Doe, a skilled pilot, enjoys traveling. While on vacation, he rents a...
分类:
其他好文 时间:
2014-05-21 08:24:18
阅读次数:
354
SOl:将原题改为枚举N的每一对因子,计算其是否互素即可。
#include
#include
#include
using namespace std;
inline int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int n,T,i,j;
scanf("%d",&T);
while(T...
分类:
其他好文 时间:
2014-05-21 07:07:00
阅读次数:
273
在项目开发中,使用SQLite一不小心就会碰到各种DB异常,网上搜了下没有这方面的资料,写出来记录下。异常信息:android.database.sqlite.SQLiteMisuseException:
library routine called out of sequence: , while...
分类:
数据库 时间:
2014-05-21 03:12:20
阅读次数:
1023