上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页

1029 Median

摘要: 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 阅读全文
posted @ 2019-01-21 11:46 ZhangのBlog 阅读(218) 评论(0) 推荐(0)

1027 Colors in Mars (20 分)进制转换

摘要: 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 represente 阅读全文
posted @ 2019-01-20 20:03 ZhangのBlog 阅读(203) 评论(0) 推荐(0)

1028 List Sorting 排序

摘要: 1028 List Sorting (25 分) Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each inpu 阅读全文
posted @ 2019-01-20 19:36 ZhangのBlog 阅读(133) 评论(0) 推荐(0)

1025 PAT Ranking

摘要: 1025 PAT Ranking (25 分) Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each tes 阅读全文
posted @ 2019-01-20 16:54 ZhangのBlog 阅读(299) 评论(0) 推荐(0)

1024 Palindromic Number(大数加法)

摘要: 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, 阅读全文
posted @ 2019-01-20 15:21 ZhangのBlog 阅读(294) 评论(0) 推荐(0)

1023 Have Fun with Numbers

摘要: 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 2469135 阅读全文
posted @ 2019-01-20 14:02 ZhangのBlog 阅读(176) 评论(0) 推荐(0)

1022 Digital Library

摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years 阅读全文
posted @ 2019-01-20 12:07 ZhangのBlog 阅读(131) 评论(0) 推荐(0)

逆序打印乘法表

摘要: for i in range(1,10): for j in range(i,10): s='%d*%d=%d'%(10-i,10-j,(10-i)*(10-j)) print(s,end=' ') print() 9*9=81 9*8=72 9*7=63 9*6=54 9*5=45 9*4=36 9*3=27 9*2=18 9*1=9 ... 阅读全文
posted @ 2019-01-16 20:50 ZhangのBlog 阅读(261) 评论(0) 推荐(0)

1021 Deepest Root (25 分)

摘要: A graph which is connected and acyclic can be considered a tree. The hight of the tree depends on the selected root. Now you are supposed to find the 阅读全文
posted @ 2019-01-06 18:16 ZhangのBlog 阅读(1426) 评论(0) 推荐(0)

1019 General Palindromic Number

摘要: 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 阅读全文
posted @ 2019-01-06 14:03 ZhangのBlog 阅读(132) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页