码迷,mamicode.com
首页 >  
搜索关键字:practise    ( 223个结果
1032. Sharing (25)【链表】——PAT (Advanced Level) Practise
题目信息1032. Sharing (25) 时间限制100 ms 内存限制65536 kB 代码长度限制16000 BTo store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share...
分类:其他好文   时间:2015-12-03 14:15:43    阅读次数:140
1029. Median (25)【排序】——PAT (Advanced Level) Practise
题目信息1029. Median (25)时间限制400 ms 内存限制65536 kB 代码长度限制16000 BGiven an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14}...
分类:编程语言   时间:2015-12-03 14:14:58    阅读次数:165
1027. Colors in Mars (20)【进制转换】——PAT (Advanced Level) Practise
题目信息1027. Colors in Mars (20)时间限制400 ms 内存限制65536 kB 代码长度限制16000 BPeople in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-d...
分类:其他好文   时间:2015-12-03 07:16:54    阅读次数:163
java 内存分配小结
下面我们要用代码解释数据在堆和栈的的存放情况。1要点对象在堆中存储。2对象引用在栈中存储。packageCom.king.practise;publicclassStudent{ privateStringname="zhangsan"; privateintage=10; privateintid=1000000; Student(){ } Student(Stringname,intage,intid){ this..
分类:编程语言   时间:2015-11-07 06:43:38    阅读次数:133
PAT (Basic Level) Practise (中文)1027. 打印沙漏(20)
1027. 打印沙漏(20)时间限制200 ms内存限制32000 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印***** *** * ********所谓“沙漏形状”,是指每行输....
分类:其他好文   时间:2015-09-06 01:11:35    阅读次数:222
PAT (Advanced Level) Practise:1008. Elevator
【题目链接】The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors th...
分类:其他好文   时间:2015-09-01 12:26:34    阅读次数:155
PAT (Basic Level) Practise (中文) 1016. 部分A+B (15)
1016. 部分A+B (15) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 正整数A的“DA(为1位整数)部分”定义为由A中所有DA组成的新整数PA。例如:给定A = 3862767,DA = 6,则A的“6部分”...
分类:其他好文   时间:2015-08-31 21:46:07    阅读次数:182
PAT (Basic Level) Practise (中文) 1023. 组个最小数 (20)
1023. 组个最小数 (20) 时间限制 100 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CAO, Peng 给定数字0-9各若干个。你可以以任意顺序排列这些数字,但必须全部使用。目标是使得最后得到的数尽可能小(注意0不能做首位)。例如:给定两个0...
分类:其他好文   时间:2015-08-30 21:21:27    阅读次数:189
PAT (Basic Level) Practise:1028. 人口普查
【题目链接】某城镇进行人口普查,得到了全体居民的生日。现请你写个程序,找出镇上最年长和最年轻的人。这里确保每个输入的日期都是合法的,但不一定是合理的——假设已知镇上没有超过200岁的老人,而今天是2014年9月6日,所以超过200岁的生日和未出生的生日都是不合理的,应该被过滤掉。输入格式:输入在第一...
分类:其他好文   时间:2015-08-27 10:57:03    阅读次数:110
PAT (Basic Level) Practise:1014. 福尔摩斯的约会
【题目链接】大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期四 14:04”,因为前面两字符串中第1对相同的大写英文字母(大小...
分类:其他好文   时间:2015-08-26 15:20:17    阅读次数:148
223条   上一页 1 ... 10 11 12 13 14 ... 23 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!