05 2020 档案

摘要:题目 One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is 阅读全文
posted @ 2020-05-31 13:26 无代码,非程序 阅读(195) 评论(0) 推荐(0)
摘要:题目 With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find ga 阅读全文
posted @ 2020-05-30 16:56 无代码,非程序 阅读(278) 评论(0) 推荐(0)
摘要:题目 To 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 the sam 阅读全文
posted @ 2020-05-28 18:44 无代码,非程序 阅读(169) 评论(0) 推荐(0)
摘要:题目 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 l 阅读全文
posted @ 2020-05-28 13:24 无代码,非程序 阅读(196) 评论(0) 推荐(0)
摘要:题目 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 pro 阅读全文
posted @ 2020-05-27 18:12 无代码,非程序 阅读(140) 评论(0) 推荐(0)
摘要:题目 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 } i 阅读全文
posted @ 2020-05-27 13:21 无代码,非程序 阅读(189) 评论(0) 推荐(0)
摘要:题目 A long distance telephone company charges its customers by the following rules: Making a long distance call costs a certain amount per minute, depe 阅读全文
posted @ 2020-05-19 16:48 无代码,非程序 阅读(155) 评论(0) 推荐(0)
摘要:题目 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 73 is a 阅读全文
posted @ 2020-05-19 15:54 无代码,非程序 阅读(290) 评论(0) 推荐(1)
摘要:题目 To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C C Programming Language, M Math 阅读全文
posted @ 2020-05-19 15:29 无代码,非程序 阅读(167) 评论(0) 推荐(0)
摘要:题目 With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing 阅读全文
posted @ 2020-05-19 13:53 无代码,非程序 阅读(134) 评论(0) 推荐(0)
摘要:题目 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 i 阅读全文
posted @ 2020-05-18 23:23 无代码,非程序 阅读(169) 评论(0) 推荐(0)
摘要:题目 This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case o 阅读全文
posted @ 2020-05-18 22:35 无代码,非程序 阅读(132) 评论(0) 推荐(0)
摘要:题目 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 the e 阅读全文
posted @ 2020-05-18 21:45 无代码,非程序 阅读(131) 评论(0) 推荐(0)
摘要:题目 Given a sequence of K integers { N​1​​ , N​2​​ , ..., N​K​​ }. A continuous subsequence is defined to be { Ni​​ , N​i+1​​ , ..., N​j​​ } where 1≤i≤ 阅读全文
posted @ 2020-05-18 21:31 无代码,非程序 阅读(145) 评论(0) 推荐(0)
摘要:题目 Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input file contains one te 阅读全文
posted @ 2020-05-18 20:26 无代码,非程序 阅读(181) 评论(0) 推荐(0)
摘要:题目 At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the d 阅读全文
posted @ 2020-05-18 18:27 无代码,非程序 阅读(127) 评论(0) 推荐(0)
摘要:题目 Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specifi 阅读全文
posted @ 2020-05-18 18:15 无代码,非程序 阅读(166) 评论(0) 推荐(0)
摘要:题目 A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each 阅读全文
posted @ 2020-05-18 18:03 无代码,非程序 阅读(104) 评论(0) 推荐(0)
摘要:题目 As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some 阅读全文
posted @ 2020-05-18 17:28 无代码,非程序 阅读(149) 评论(0) 推荐(0)
摘要:题目 This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case o 阅读全文
posted @ 2020-05-18 15:59 无代码,非程序 阅读(150) 评论(0) 推荐(0)
摘要:题目 Calculate a+b and output the sum in standard format that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2020-05-18 14:33 无代码,非程序 阅读(104) 评论(0) 推荐(0)
摘要:题目 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, w 阅读全文
posted @ 2020-05-18 13:48 无代码,非程序 阅读(201) 评论(0) 推荐(0)
摘要:题目 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 op 阅读全文
posted @ 2020-05-17 17:38 无代码,非程序 阅读(232) 评论(0) 推荐(0)
摘要:题目 Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run 阅读全文
posted @ 2020-05-16 18:21 无代码,非程序 阅读(219) 评论(0) 推荐(0)
摘要:题目 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 num 阅读全文
posted @ 2020-05-16 14:07 无代码,非程序 阅读(176) 评论(0) 推荐(0)
摘要:题目 Notice that the number 123456789 is a 9 digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469 阅读全文
posted @ 2020-05-16 10:45 无代码,非程序 阅读(160) 评论(0) 推荐(0)
摘要:题目 A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published ye 阅读全文
posted @ 2020-05-15 00:38 无代码,非程序 阅读(152) 评论(0) 推荐(0)
摘要:题目 It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward tha 阅读全文
posted @ 2020-05-14 19:19 无代码,非程序 阅读(123) 评论(0) 推荐(0)
摘要:题目 A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find 阅读全文
posted @ 2020-05-14 18:48 无代码,非程序 阅读(542) 评论(0) 推荐(0)
摘要:题目 Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to 阅读全文
posted @ 2020-05-14 13:30 无代码,非程序 阅读(208) 评论(0) 推荐(0)
摘要:题目 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 num 阅读全文
posted @ 2020-05-13 22:48 无代码,非程序 阅读(112) 评论(0) 推荐(0)
摘要:题目 There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at an 阅读全文
posted @ 2020-05-12 20:14 无代码,非程序 阅读(274) 评论(0) 推荐(0)
摘要:题目 Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All th 阅读全文
posted @ 2020-05-12 12:56 无代码,非程序 阅读(206) 评论(0) 推荐(0)
摘要:题目 Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The ru 阅读全文
posted @ 2020-05-11 09:18 无代码,非程序 阅读(1284) 评论(0) 推荐(1)