![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单题
萬子堯
这个作者很懒,什么都没留下…
展开
-
CSP201503-1(简单题)
题目题意十分明确,基本上不需要思考。但是!!必须声明全局数组,否则csf的大数据测试会溢出。多么痛的领悟~ #include <iostream> int graph[1005][1005]; int main(){ int n; int m; scanf ("%d%d",&n,&m); for (int a=0;a<n;a++){ for (in原创 2019-03-11 17:00:55 · 219 阅读 · 0 评论 -
1025 PAT Ranking (25 point(s))
问题描述: 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 rankl...原创 2019-03-12 20:49:25 · 85 阅读 · 0 评论 -
1069 The Black Hole of Numbers (20 point(s))
问题描述: For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by...原创 2019-04-01 15:22:38 · 147 阅读 · 0 评论 -
1093 Count PAT's (25 point(s))
问题描述: The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and the 6th characters....原创 2019-03-28 21:13:09 · 105 阅读 · 0 评论 -
1101 Quick Sort (25 point(s))
问题描述: There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then the elements less than the pivot are moved to ...原创 2019-03-28 21:17:02 · 106 阅读 · 0 评论 -
1032 Sharing (25 point(s))
问题描述: 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 same sublist if they share the same suffix. For ex...原创 2019-05-14 14:42:35 · 130 阅读 · 0 评论 -
1052 Linked List Sorting (25 point(s))
问题描述: A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the next structure. No...原创 2019-05-14 16:06:15 · 102 阅读 · 0 评论