- 博客(27)
- 资源 (36)
- 收藏
- 关注
原创 1044. Shopping in Mars (25)
Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (inMars dollars M$). When making the payment, the chain can be cut at any position f
2015-08-31 22:26:40 371
原创 史上最全代码风格大全!!!Coding Style Conventions and Standards
Coding Style Conventions and StandardsA curated list of Coding Style Conventions and Standards.DocsCC Coding Standard.Recommended C Style and Coding Standards.SEI CERT C Coding Standar
2015-08-31 16:46:52 3348 1
转载 对Android初学者的10个建议
这些Android开发的技巧都是我个人的经验。总共10条,所以我又把它们叫做是“Android开发的10大技巧”。下面让我们进入正文:1.IDE的选择大多数Android开发是在Eclipse中进行的,其实IntelliJ IDEA的社区版也挺不错,我用它非常顺畅地编写了一些应用程序。就个人而言,我对于Eclipse的UI拖放接口并不怎么在乎。不过它确实令人印象深刻
2015-08-31 16:42:15 514
原创 1043. Is It a Binary Search Tree (25)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The righ
2015-08-31 16:13:31 369
原创 1042. Shuffling Machine (20)
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gambler
2015-08-31 14:49:56 407
原创 1041. Be Unique (20)
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1, 104]. The first one who bets on
2015-08-31 13:01:12 354
原创 1040. Longest Symmetric String (25)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest symmetric sub-string is "s PAT&TAP s", hence you must
2015-08-31 11:37:20 414 1
原创 1039. Course List for Student (25)
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes
2015-08-31 10:40:29 411
原创 1038. Recover the Smallest Number (30)
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-0229-8
2015-08-30 20:33:46 369
原创 1037. Magic Coupon (25)
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that whenyou use this coupon with a product, you may get N times the value of that product ba
2015-08-30 19:48:43 394
原创 1036. 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 ofall the female students.Input Specification:Each input file contains on
2015-08-30 11:39:39 555
原创 1035. 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 distinguish 1 (one) from l (L
2015-08-30 11:21:57 318
原创 1034. Head of a Gang (30)
1034. Head of a Gang (30)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueOne way that the police finds the head of a
2015-08-29 10:47:20 418
原创 1033. To Fill or Not to Fill (25)
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car islimited, we have to find gas stations on the way from time to time. Different gas
2015-08-28 16:47:00 409
原创 1032. Sharing (25)
To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we maylet the words share the same sublist if they share the same suffix. For example,
2015-08-27 16:21:29 495
原创 1031. 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 de ll rlowoThat is, the characters must be pr
2015-08-27 10:10:42 384
原创 1030. Travel Plan (30)
A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest path b
2015-08-26 21:25:39 487 1
原创 1029. Median (25)
Given 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} is 12, and the median of S2={9, 10, 15, 16, 17} is 15. The
2015-08-12 09:30:09 563 2
原创 1028. List Sorting (25)
Excel can sort records according to any column. Now you are supposed to imitate this function.InputEach input file contains one test case. For each case, the first line contains two integers N
2015-08-11 09:37:43 358
原创 1027. 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 number, where the first 2 digits are for Red, the middle 2 dig
2015-08-11 09:05:55 291
原创 1026. Table Tennis (30)
A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open when they arrive, they will be assigned to the ava
2015-08-09 10:09:27 1064
转载 iOS开发者面试必备:10个Objective-C基础面试题
苹果的iOS系统越来越火了,苹果这个金矿平台也吸引了大量的iOS开发者参与其中,这也促使越来越多的公司向iOS应用开发方向靠拢,因此市场上 对iOS开发的人才需求自然也非常巨大。如果你准备去面试一个iOS开发岗位,那苹果的iOS系统越来越火了,苹果这个金矿平台也吸引了大量的iOS开发者参与其中,这也促使越来越多的公司向iOS应用开发方向靠拢,因此市场上 对iOS开发的人才需求自然也
2015-08-06 09:46:54 472
原创 1025. PAT Ranking (25)
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists w
2015-08-04 10:16:23 297
原创 1024. Palindromic Number (25)
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers
2015-08-01 11:03:20 346
原创 1022. Digital Library (30)
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a
2015-08-01 09:05:20 344
08-排序4. The World's Richest (25).zip
2015-07-01
08-排序5. Sort with Swap(0) (25).zip
2015-07-01
06-图7. How Long Does It Take (25).zip
2015-06-23
05-图2. Saving James Bond - Easy Version (25).zip
2015-06-23
06-图5. 旅游规划(25).zip
2015-06-19
06-图4. Saving James Bond - Hard Version (30).zip
2015-06-19
Search in a Binary Search Tree.zip
2015-06-18
03-树2. Tree Traversals Again.zip
2015-06-16
PAT(Basic Level) Practise
2015-05-20
09-散列3. Hashing - Hard Version (30).zip
2015-07-08
08-排序3. Talent and Virtue (25).zip
2015-07-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人