- 博客(9)
- 收藏
- 关注
原创 PAT (Advanced Level) Practise 1010
PAT (Advanced Level) Practise 10101010. Radix (25)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is “yes”, if 6 is a decimal number and 110 is
2017-06-22 19:24:47 303
原创 PAT (Advanced Level) Practise 1027
PAT (Advanced Level) Practise 10271027. Colors in Mars (20)People 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-digit numb
2017-06-18 21:55:29 229
原创 PAT (Advanced Level) Practise 1092
PAT (Advanced Level) Practise 10921092. To Buy or Not to Buy (20)Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorfu
2017-06-18 21:46:47 247
原创 PAT (Advanced Level) Practise 1036
PAT (Advanced Level) Practise 11201036. Boys vs Girls (25)This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female studen
2017-06-18 21:40:26 249
原创 PAT (Advanced Level) Practise 1120
PAT (Advanced Level) Practise 11201120. Friend Numbers (20)Two integers are called “friend numbers” if they share the same sum of their digits, and the sum is their “friend ID”. For example, 123 and 51
2017-06-18 21:34:47 252
原创 PAT (Advanced Level) Practise 1015
PAT (Advanced Level) Practise 10311015. Reversible Primes (20)A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system
2017-06-18 21:28:49 205
原创 PAT (Advanced Level) Practise 1031
Programming Ability Test1031. Hello World for U (20)Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, “helloworld” can be printed as:h d e
2017-06-17 22:17:04 198
原创 PAT (Advanced Level) Practise 1035
PAT1035. Password (20) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distingu
2017-06-17 21:46:04 255
原创 数据结构与算法分析 --- 排序算法
数据结构与算法分析 — 排序算法 概述 排序算法 冒泡排序 插入排序 希尔排序 堆排序 归并排序 快速排序 概述后面的排序算法中,假设待排元素是整数,且按照非递减排序. 后面程序中待排元素统一定义如下:typedef int ElementType;冒泡排序(Bubble Sort)它重复地遍历待排序的序列,一次比较相连的两个元素,如果他们的顺序错误就把他们交换过来.每一次遍历,都
2017-05-06 22:57:50 341
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人