Minimum Inversion Number Time Limit:1000MS Memory
Limit:32768KB 64bit IO Format:%I64d & %I64u Description The inversion number
of a given number seque...
分类:
其他好文 时间:
2014-05-04 12:27:07
阅读次数:
349
A - 敌兵布阵 Time Limit:1000MS Memory Limit:32768KB
64bit IO Format:%I64d & %I64u Description
C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置...
分类:
其他好文 时间:
2014-05-04 12:26:09
阅读次数:
267
Buy Tickets Time Limit:4000MS Memory Limit:65536KB
64bit IO Format:%I64d & %I64u DescriptionRailway tickets were difficult to
buy around the Lunar New...
分类:
其他好文 时间:
2014-05-04 12:01:48
阅读次数:
306
实现 smart_ptr 智能指针会自动地管理内存(释放不需要的内存),而不需要程序员去操心。
它能避免迷途指针(dangling pointers),内存泄漏(memory leaks), 分配失败等情况的发生。智能指针需要为所有实例维护一个引用计数,
这样才能在恰当的时刻(引用计数为0时)...
分类:
编程语言 时间:
2014-05-04 11:56:03
阅读次数:
380
DP?Time Limit: 10000/3000 MS
(Java/Others)Memory Limit: 128000/128000 K (Java/Others)Total Submission(s):
1804Accepted Submission(s): 595Problem Descr...
分类:
其他好文 时间:
2014-05-04 11:20:23
阅读次数:
291
从外网把数据库中的表结构以及数据用”导出脚本“的方式导出来(1.628G的样子),但是在本机执行sql脚本的时候,直接就是out of memory。
之前执行60M的脚本没出过这种问题,直接双击打开.sql脚本文件,然后执行就完了。现在主要是这文件太大了,就报错了,后面不停的google...
分类:
数据库 时间:
2014-05-04 11:19:22
阅读次数:
351
首先看下面这个例子
public static void main(String[] args) {
ArrayList al1 = new ArrayList();
al1.add(1);
ArrayList al2 = new ArrayList();
al2.add("hello");
//int型链表和string型链表,结果为true
System.out.p...
分类:
编程语言 时间:
2014-05-03 22:02:53
阅读次数:
376
Dividing
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 57229
Accepted: 14680
Description
Marsha and Bill own a collection of marbles. They want to spli...
分类:
其他好文 时间:
2014-05-03 21:52:18
阅读次数:
253
Tickets
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 4 Accepted Submission(s) : 2
Font: Times New Roman | Verdana | Georgia
Font Size: ←...
分类:
其他好文 时间:
2014-05-03 21:16:19
阅读次数:
360
[root@server254java]#vimOstrich.java//注意文件名必须是这个,因为下面代码中只有Ostrich是public修饰符。我们要明白public的含义classBird
{
publicvoidFly()
{
System.out.println("IambirdIcanfly");
}
}
publicclassOstrichextendsBird
{
publicvoidFly()
{
System.out.p..
分类:
编程语言 时间:
2014-05-03 20:47:18
阅读次数:
366