- 博客(8)
- 收藏
- 关注
转载 内存回收中引用计数算法的循环引用问题
在阅读西门吹牛和Gityuan的文章之后,总结记录下引用计数算法的循环引用问题。示例代码如下:public static void main(String[] args) { GcObject obj1 = new GcObject(); //Step1 GcObject obj 2 = new GcObject();//Step2 obj1.ins...
2018-04-24 14:45:00 1425 1
原创 POJ:1008 JAVA
POJ:1008Maya Calendar Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 78449 Accepted: 24123 DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discove
2017-06-21 16:30:10 627
原创 请教!!!POJ: 1007一直wrong answer,换一种写法就AC,其实是一样的。。
代码:package Main;import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.Map.Entry;
2017-05-12 16:35:15 828
转载 北大OJ:1006 生理周期问题 中国剩余定理
参考: 1.http://blog.csdn.net/shanshanpt/article/details/8724769 2.http://www.cnblogs.com/walker01/archive/2010/01/23/1654880.html1006:Description:人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和
2017-05-11 17:26:26 608
原创 北大OJ:1005
1005:Description:Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinki
2017-05-11 11:34:40 595
原创 北大OJ:1004
1004:Description: Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial
2017-05-10 17:23:44 517
原创 北大OJ:1003
1003:HangoverDescription:How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be p
2017-05-10 16:54:26 426
原创 北大OJ试题笔记 : 1000-1002
近期由于一些需要,在开始刷OJ试题,留下一些做题笔记,也许以后还用得到,使用的语言主要为Java和C。1000:输出a+b:#include<stdio.h>int main(void){ int a, b; scanf("%d %d", &a, &b); printf("%d", a+b); return 0;}1001: 高精度幂的计算Description:
2017-05-09 16:24:47 726
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人