- 博客(9)
- 收藏
- 关注
原创 CodeForces-687B Remainders Game(数学题)
Description Today Pari and Arya are playing a game called Remainders.Pari chooses two positive integer x and k, and tells Arya k but not x. Arya have to find the value . There are n ancient numbers c1
2016-07-28 08:25:39 707
原创 Codeforces-688B Lovely Palindromes和Codeforces-630A-Again Twenty Five!(两道傻X题,借此秀一下python的简洁)
Description Pari has a friend who loves palindrome numbers. A palindrome number is a number that reads the same forward or backward. For example 12321, 100001 and 1 are palindrome numbers, while 112 a
2016-07-27 16:31:37 958
原创 2016 北邮暑期训练3-F题( POJ2342 Anniversary party)树状DP
Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor relatio
2016-07-25 08:15:58 688
转载 阿里面经之解答 by cmershen(5)——内存泄露,java.util.concurrent包
19.Java有没有内存泄露?当然有了。。。DTSJava模块中还有MLF缺陷呢~~不过DTS里面能报出的内存泄露十分片面,接下来我们全面的了解一下Java的内存泄露。首先,什么叫内存泄露?就是一个对象已经不再使用,但却仍然占据着内存得不到释放。虽然JVM获得的物理内存有限,但大量的内存泄露会导致Java项目运行时效率下降,还有可能抛出OutOfMemory异常。举个例子:Vect
2016-07-24 16:11:27 1561
原创 2016 北邮暑期训练3-C题(CodeForces 699B One Bomb)白痴题
Description You are given a description of a depot. It is a rectangular checkered field of n × m size. Each cell in a field can be empty (“.”) or it can be occupied by a wall (“*”).You have one bomb.
2016-07-24 12:37:03 639
原创 2016 北邮暑期训练3-A题(CodeForces 697B Barnicle)白痴题
Description Barney is standing in a bar and starring at a pretty girl. He wants to shoot her with his heart arrow but he needs to know the distance between him and the girl to make his shot accurate.B
2016-07-24 10:44:09 719
原创 2016 北邮暑期训练3-D题(Codeforces 698A Vacations)DP,水题
Description Vasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following information about each of this n days: whether that gym opened and whether a c
2016-07-23 20:50:02 1055
原创 阿里面经之解答 by cmershen(4)——线程池
什么叫线程池?如何实现线程池?因为新建一个线程的成本比较高,所以在大型系统中使用线程池可以很好的提高性能。线程池就是在系统启动的时候先创建大量的空闲线程,当该线程的run()或call()方法执行结束后,该线程不会立即死亡,而是在线程池中等待再次唤醒。这很适合大型系统中需要大量、重复、短暂地启动线程的操作。 除此之外,线程池技术可以有效的控制并发数量,以防线程开启过多时导致jvm崩溃。
2016-07-06 16:49:32 1889
原创 阿里面经之解答 by cmershen(3)——String/StringBuffer/StringBuilder,Java序列化,线程安全,线程同步,ThreadLocal
11.String,StringBuffer,StringBuilder的区别(1)都是final的,不能被继承。 (2)String长度不可变,另外两个长度是可变的(例如StringBuffer有append方法) (3)StringBuffer是线程同步的,里面的每一个API都添加了synchronized修饰,而StringBuilder不是线程同步的,因此拥有更好的性能。12.
2016-07-05 16:16:31 2966
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人