Problem DescriptionYour task is to calculate the sum of some integers.InputInput contains an integer N in the first line, and then N lines follow. Eac...
分类:
其他好文 时间:
2014-12-05 20:58:18
阅读次数:
147
1.Link:http://poj.org/problem?id=1062http://bailian.openjudge.cn/practice/1062/2.Content:昂贵的聘礼Time Limit:1000MSMemory Limit:10000KTotal Submissions:37...
分类:
其他好文 时间:
2014-12-04 17:31:07
阅读次数:
187
该题是用来公司教学,并无难度。用于说明算法效率差异以及循环和递归的效率差别。package practice;import java.math.BigDecimal;/** * @author caiyu * @date 2014-12-3 */public class X_N_Square { ....
分类:
编程语言 时间:
2014-12-03 14:12:01
阅读次数:
302
主要谈谈锁的性能以及其它一些理论知识,内容主要的出处是《Java Concurrency in Practice》,结合自己的理解和实际应用对锁机制进行一个小小的总结。首先需要强调的一点是:所有锁(包括内置锁和高级锁)都是有性能消耗的,也就是说在高并发的情况下,由于锁机制带来的上下文切换、资源同步等...
分类:
编程语言 时间:
2014-12-03 00:15:48
阅读次数:
122
在这个小结里面重点讨论原子操作的原理和设计思想。由于在下一个章节中会谈到锁机制,因此此小节中会适当引入锁的概念。在Java Concurrency in Practice中是这样定义线程安全的:当多个线程访问一个类时,如果不用考虑这些线程在运行时环境下的调度和交替运行,并且不需要额外的同步及在调用方...
分类:
移动开发 时间:
2014-12-02 22:28:48
阅读次数:
259
此题非常水,不做说明。package practice;import java.io.BufferedInputStream;import java.util.Scanner;/** * @author caiyu * @date 2014-12-2 */public class POJ1008 {...
分类:
编程语言 时间:
2014-12-02 16:35:39
阅读次数:
173
Awesome Backup System
Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice URAL
2030
Description
It is known that all people can be d...
分类:
其他好文 时间:
2014-12-02 00:07:57
阅读次数:
281
- Permutation Transformer
Time Limit:2000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Submit Status Practice UVA
11922
Appoint description:
System Crawler (2014-11-30)
De...
分类:
其他好文 时间:
2014-12-02 00:07:52
阅读次数:
178
D - Robotic Sort
Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice HDU
1890
Appoint description:
System Crawler (2014-11-27)
Descri...
分类:
其他好文 时间:
2014-12-02 00:07:05
阅读次数:
242
G - SuperMemo
Time Limit:5000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status Practice POJ
3580
Appoint description:
System Crawler (2014-11-27)
Descripti...
分类:
其他好文 时间:
2014-12-02 00:06:41
阅读次数:
218