摘要: 题目描述: 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 阅读全文
posted @ 2022-08-28 22:46 D_coding_blog 阅读(42) 评论(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 阅读全文
posted @ 2022-08-28 21:58 D_coding_blog 阅读(35) 评论(0) 推荐(0)
摘要: 题目描述: Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to r 阅读全文
posted @ 2022-08-23 23:30 D_coding_blog 阅读(50) 评论(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 阅读全文
posted @ 2022-08-23 23:22 D_coding_blog 阅读(33) 评论(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 阅读全文
posted @ 2022-08-22 21:42 D_coding_blog 阅读(43) 评论(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 2 阅读全文
posted @ 2022-08-21 22:30 D_coding_blog 阅读(42) 评论(0) 推荐(0)
摘要: 题目描述: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published 阅读全文
posted @ 2022-08-21 22:06 D_coding_blog 阅读(30) 评论(0) 推荐(0)
摘要: 题目描述: 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 student 阅读全文
posted @ 2022-08-21 00:44 D_coding_blog 阅读(40) 评论(0) 推荐(0)
摘要: 题目描述: To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing pass 阅读全文
posted @ 2022-08-21 00:31 D_coding_blog 阅读(34) 评论(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 阅读全文
posted @ 2022-08-21 00:17 D_coding_blog 阅读(35) 评论(0) 推荐(0)