自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(105)
  • 资源 (8)
  • 问答 (12)
  • 收藏
  • 关注

原创 【题意+分析】1071 Speech Patterns (25 分)_27行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门People often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops”. Analyzing such patterns can help to narrow down a speaker’s identity, which

2021-02-28 16:35:02 83 1

原创 DevC++怎么更改背景颜色

2021-02-28 15:49:49 760

原创 【题意+分析】1067 Sort with Swap(0, i) (25 分)_24行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Given any permutation of the numbers {0, 1, 2,…, N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation that is allowed to use? For example, to sort {4, 0, 2, 1, 3} we may apply

2021-02-27 20:31:48 54

原创 【详细讲解】1065 A+B and C (64bit) (20 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Given three integers A, B and C in [−2^​63​​ ,2^​63​​ ], you are supposed to tell whether A+B>C.Input Specification:The first line of the input gives the positive number of test cases, T (≤10). Then T test cases

2021-02-27 18:08:37 61

原创 【最后测试点超时】1063 Set Similarity (25 分)_22行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Given two sets of integers, the similarity of the sets is defined to be N​c​​/N​t​​×100%, where N​c​​ is the number of distinct common numbers shared by the two sets, and N​t​​ is the total number of distinct numbers i

2021-02-27 17:04:08 55

原创 【最详细的分析】1061 Dating (20 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Sherlock Holmes received a note with some strange strings: Let’s date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings are actually refe

2021-02-27 00:02:00 56

原创 【科学计数法模板讲解】1060 Are They Equal (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123×10​5​​ with simple chopping. Now given the number of significant digits on a

2021-02-25 20:28:09 43

原创 【解决办法】你目前是以 ***的身份登录。请注销,然后使用你用于阅读组织电子邮件的帐户登录 Outlook

问题原因:所使用的浏览器记住了之前的邮箱,而我们更换邮箱后继续登录,浏览器会默认登录之前的邮箱,造成新邮箱无法登录。解决办法:找到浏览器所在缓存,删除outlook这一行网址的账号记录。不同浏览器缓存密码的位置可能不同,具体操作方法百度即可。...

2021-02-25 17:34:14 155

原创 【题目分析】1059 Prime Factors (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p​1​​​k​1​​​​×p​2​​​k​2​​​​×⋯×p​m​​​k​m​​​​.Input Specification:Each input file contains one test ca

2021-02-25 16:07:27 50 1

原创 1058 A+B in Hogwarts (20 分)_7行代码AC

PAT甲级最优题解——>传送门If you are a fan of Harry Potter, you would know the world of magic has its own currency system – as Hagrid explained it to Harry, “Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it’s easy enough.” Your job is

2021-02-25 15:38:12 1106 3

原创 【附超时原因】1055 The World‘s Richest (25 分)_42行代码AC

立志用最少的代码做最高效的表达Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world’s wealthiest people. Now you are supposed to simulate this job, but concentrate only on the people in a certain range of ages. That is,

2021-02-24 18:09:11 59

原创 1054 The Dominant Color (20 分)_12行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Behind the scenes in the computer’s memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the dominant color. A s

2021-02-24 15:34:58 42

原创 【附段错误原因,最后两个测试点】1052 Linked List Sorting (25 分)【链表类题目总结】

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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. Now given a linked list, y

2021-02-23 23:18:10 74

原创 【详细注释】1051 Pop Sequence (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of the stack. For exampl

2021-02-23 20:17:05 49

原创 1050 String Subtraction (20 分)_10行代码AC

立志用最少的代码做最高效的表达Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​. Your task is simply to calculate S​1​​−S​2​​ for any given strings. However, it might not be that

2021-02-23 18:58:31 39

原创 【最简解法】1048 Find Coins (25 分)_18行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However, there was a speci

2021-02-23 17:08:27 45

原创 【超时原因】1047 Student List for Course (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input Specification:Eac

2021-02-23 12:59:00 60

原创 【题意分析】1044 Shopping in Mars (25 分)【滑动窗口】

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making the payment, the chain can be cut at any position for only once and

2021-02-22 20:15:28 40

原创 【测试点2超时问题】1046 Shortest Distance (20 分)_21行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file contains one test case.

2021-02-22 18:56:51 48

原创 【题意+分析】1043 Is It a Binary Search Tree (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 right subtree of a node con

2021-02-21 23:53:29 66

原创 【题意分析】1042 Shuffling Machine (20 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 gamblers by performing in

2021-02-21 22:50:05 45

原创 【测试点2分析】1038 Recover the Smallest Number (30 分)_21行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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-87 or 0229-32-87-

2021-02-21 19:59:06 66

原创 1039 Course List for Student (25 分)_33行代码AC

立志用最少的代码做最高效的表达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 for a query.Input Specification:Ea

2021-02-21 19:10:59 44

原创 【终极办法!】idea没有import project解决办法

可能一:IDEAD将import project键隐藏了。显示方法:File–>setting–>Appearance&Behavior–>Menus and Toolbars–>Main menu–>File,在下面随便点一个地方,右上+号–>Add Action–>Other–>import project。点击Apply 然后OK可能二:2020.3版本以后的idea根本没有import project键!若想导入文件,选择Ope

2021-02-21 13:39:45 1070

原创 1040 Longest Symmetric String (25 分)_15行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 output 11.

2021-02-20 23:57:32 61

原创 【题意+解析】1041 Be Unique (20 分)_18行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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,10^​4]. The first one who bets on a unique number w

2021-02-20 23:20:15 41

原创 1036 Boys vs Girls (25 分)_27行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 students.Input Specification:Each input file contains one test case. Each cas

2021-02-19 23:08:27 58

原创 1034 Head of a Gang (30 分) One way that the police finds the head of a gang is to check people‘s pho

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 related. The weight of a relation is defined to be the total time leng

2021-02-19 16:29:42 51

原创 【测试点分析】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 in lowercase), or 0 (zero) from O (o i

2021-02-19 12:12:00 49

原创 【详细解析】1033 To Fill or Not to Fill (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 gas stations on the way from time to time. Different gas station may give

2021-02-19 00:31:36 71

原创 正式突破两千粉丝!开心!

今天是个好日子,心想的事儿都能成~到了假期,似乎都懒在家里很少学习,浏览量和涨粉量相较上学季少了好多,不过好在磕磕绊绊终于破了2k粉~ 真的蛮不容易。希望接下来的日子更加努力,不辜负大家对我的期待。...

2021-02-18 23:08:26 62

原创 【测试点三、四、五分析】1032 Sharing (25 分)_28行代码AC

立志用最少的代码做最高效的表达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 example, loading and being are stored as showe

2021-02-18 23:04:16 95 1

原创 【题意+推导讲解】1031 Hello World for U (20 分)_15行代码AC

立志用最少的代码做最高效的表达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 printed in the original order, starting top-

2021-02-18 19:06:17 49

原创 【讲解】1030 Travel Plan (30 分)【DFS】_41行代码Ac

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 between his/her sta

2021-02-18 18:30:01 44

原创 Python之range函数【详解】_Python系列学习笔记

range函数是Python中的内置函数,用于生成一系列连续的整数,一般用于for循环体中。函数语法range(start, stop[, step])参数说明:start: 计数从 start 开始。默认是从 0 开始。例如range(5)等价于range(0, 5);stop: 计数到 stop 结束,但不包括 stop。例如:range(0, 5) 是[0, 1, 2, 3, 4]没有5step:步长,默认为1。例如:range(0, 5) 等价于 range(0, 5, 1)实例r

2021-02-17 19:23:51 337 2

原创 Python convert函数-转换图像的格式_Python系列学习笔记

convert()是图像实例对象的一个方法,接受一个 mode 参数,用以指定一种色彩模式1 ------------------(1位像素,黑白,每字节一个像素存储)L ------------------(8位像素,黑白)P ------------------(8位像素,使用调色板映射到任何其他模式)RGB------------------(3x8位像素,真彩色)RGBA------------------(4x8位像素,带透明度掩模的真彩色)CMYK-----------------

2021-02-17 19:19:54 103

原创 【19行代码AC,简洁】1029 Median (25 分)

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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 median of

2021-02-17 12:16:07 49

原创 【简洁代码】1028 List Sorting (25 分)_26行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门Excel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case, the first line contains two integers N (≤10^5

2021-02-17 11:05:07 1991 4

原创 1027 Colors in Mars (20 分)_20行代码AC

立志用最少的代码做最高效的表达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 digits for Green, and the last 2 digits f

2021-02-17 10:16:31 57

原创 【题意分析】1024 Palindromic Number (25 分)_38行代码AC

立志用最少的代码做最高效的表达PAT甲级最优题解——>传送门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.Non-palindromic

2021-02-17 09:43:22 61

页面置换算法模拟 实验报告.doc

编程实现页面置换算法,最少实现两种算法,比较算法的优劣,并将调试结果显示在计算机屏幕上,检测机算和笔算的一致性。 (1)采用页式分配存储方案,通过分别计算不同算法的命中率来比较算法的优劣,同时也考虑页面大小及内存实际容量对命中率的影响; (2)实现OPT 算法 (最优置换算法) 、LRU 算法 (Least Recently) 、 FIFO 算法 (First IN First Out)的模拟; (3)使用某种编程语言模拟页面置换算法。

2020-06-11

【竞赛用】国内Top2大学ACM最全板子.zip

【竞赛用】国内Top2大学ACM最全板子 ACM比赛专用模板大全。为笔者手动整理。 预祝大家取得好成绩!

2021-05-04

pywin32-300-cp38-cp38-win32.whl 下载,适用Python3.8

pywin32-300-cp38-cp38-win32.whl 下载,适用Python3.8 pywin32-300-cp38-cp38-win32.whl 下载,适用Python3.8 pywin32-300-cp38-cp38-win32.whl 下载,适用Python3.8

2021-02-17

蓝桥杯历届真题题目+分数分布

2015-2019年 蓝桥杯真题(再往前也没什么参考价值了), 包含题型分布与题型分值,蓝桥杯真题与模拟题差异非常大,一定要刷真题。想要刷题的小伙伴要赶快下载了, 刷个两三遍,省一省二没问题的。

2020-10-01

紫书第三章习题源码.zip

紫书第三章习题源码,里面有我对例题的一些心得、总结和感悟。 所选代码都是可以找到的最优解。

2020-05-15

apache-maven-3.6.3-bin.zip 最新版

apache-maven-3.6.3-bin.zip 最新版 官网没法下载的可以来这里 apache-maven-3.6.3-bin.zip 最新版 官网没法下载的可以来这里 apache-maven-3.6.3-bin.zip 最新版 官网没法下载的可以来这里

2021-02-21

【最新版】Postman.zip

官网进不去的可以来这里下载,虽然不是最新版,但下载后会自动更新 官网进不去的可以来这里下载,虽然不是最新版,但下载后会自动更新 官网进不去的可以来这里下载,虽然不是最新版,但下载后会自动更新

2021-02-20

【全集】Java Web程序设计任务教程 课后习题答案 .zip

都是我自己写的,没有侵权。

2020-10-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人 TA的粉丝

提示
确定要删除当前文章?
取消 删除