自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 收藏
  • 关注

原创 【huggingface网络问题】用 Git LFS(Large File Storage)解决huggingface大文件下载的问题

使用 Git LFS(Large File Storage)可以解决大文件下载的问题。以下是如何使用 Git LFS 手动下载 Hugging Face 模型文件的步骤

2024-06-27 12:49:50 482 1

原创 1018 Public Bike Management (30 point(s)) PAT(AVL树,层序遍历,完全二叉树)

1018 Public Bike Management (30 point(s))☆AVL树,层序遍历,完全二叉树题目An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalanc

2022-03-02 14:39:18 267

原创 1118 Birds in Forest (25 point(s)) PAT(并查集)

1118 Birds in Forest (25 point(s))并查集题目Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are supposed to help the scientists to count the maximum number of

2022-03-01 16:58:17 181

原创 1156 Sexy Primes (20 point(s)) PAT 素数

1156 Sexy Primes (20 point(s))素数题目“Forever number” is a positive integer A with K digits, satisfying the following constrains:the sum of all the digits of A is m;the sum of all the digits of A+1 is n; andthe greatest common divisor of m and n is a pr

2022-02-25 17:33:09 398

原创 1160 Forever (20 point(s))

1160 Forever (20 point(s))☆题目“Forever number” is a positive integer A with K digits, satisfying the following constrains:the sum of all the digits of A is m;the sum of all the digits of A+1 is n; andthe greatest common divisor of m and n is a prime n

2022-02-20 14:42:30 559

原创 1162 Postfix Expression (25 point(s)) PAT

1162 Postfix Expression (25 point(s))☆题目Given a syntax tree (binary), you are supposed to output the corresponding postfix expression, with parentheses reflecting the precedences of the operators.Input Specification:Each input file contains one test c

2022-02-20 14:07:14 151

原创 1161 Merging Linked Lists (25 point(s)) PAT

1161 Merging Linked Lists (25 point(s))题目Given two singly linked lists L1=a1→a2→⋯→an−1→anL_1=a_1→a_2→⋯→a_{n−1}→a_nL1​=a1​→a2​→⋯→an−1​→an​ and L2=b1→b2→⋯→bm−1→bmL_2=b_1→b_2→⋯→b_{m−1}→b_mL2​=b1​→b2​→⋯→bm−1​→bm​. If n≥2m, you are supposed to reverse and mer

2022-02-20 13:49:43 1099

原创 1163 Dijkstra Sequence (30 point(s)) PAT

1163 Dijkstra Sequence (30 point(s))☆题目Dijkstra’s algorithm is one of the very famous greedy algorithms. It is used for solving the single source shortest path problem which gives the shortest paths from one particular source vertex to all the other ver

2022-02-19 20:45:27 740 1

原创 1167 Cartesian Tree (30 point(s)) PAT甲级

1167 Cartesian Tree (30 point(s))题目A summit (峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The ideal arrangement of one area is to invite those heads so that everyone is a direct friend of

2022-02-09 22:15:36 184

原创 1166 Summit (25 point(s)) PAT甲级

1166 Summit (25 point(s))题目A summit (峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The ideal arrangement of one area is to invite those heads so that everyone is a direct friend of everyone

2022-02-09 22:05:03 468

原创 1165 Block Reversing (25 point(s)) PAT甲级

1165 Block Reversing (25 point(s))题目Given a singly linked list L. Let us consider every K nodes as a block (if there are less than K nodes at the end of the list, the rest of the nodes are still considered as a block). Your job is to reverse all the bloc

2022-02-08 13:15:03 292

原创 1164 Good in C (20 point(s)) PAT甲级

1164 Good in C (20 point(s))字符串题目When your interviewer asks you to write “Hello World” using C, can you do as the following figure shows?Input Specification:Each input file contains one test case. For each case, the first part gives the 26 capital En

2022-02-05 15:54:45 352

原创 1060 Are They Equal (25 point(s)) PAT甲级

1060 Are They Equal (25 point(s))字符串题目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×105 with simple chopping. Now given the number of significant digits on a

2021-05-10 20:47:05 63

原创 1056 Mice and Rice (25 point(s)) PAT甲级

1056 Mice and Rice (25 point(s))排序题目Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice as possible in o

2021-05-06 23:09:52 100

原创 1080 Graduate Admission (30 point(s)) PAT甲级

1080 Graduate Admission (30 point(s))排序题目It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate the admission procedure.

2021-05-05 16:21:45 103

原创 1079 Total Sales of Supply Chain (25 point(s)) PAT甲级

1079 Total Sales of Supply Chain (25 point(s))dfs题目A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the c

2021-05-02 17:26:27 153

原创 1078 Hashing (25 point(s)) PAT甲级

1078 Hashing (25 point(s))hash题目The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be H(key)=key%TSize where TSize is the

2021-04-25 09:27:15 91

原创 1077 Kuchiguse (20 point(s)) PAT甲级

1077 Kuchiguse (20 point(s))字符串题目The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a preference is called “Kuchiguse” and is o

2021-04-24 15:54:27 69

原创 1099 Build A Binary Search Tree (30 point(s)) PAT甲级

1099 Build A Binary Search Tree (30 point(s))BST,树的遍历题目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 s

2021-04-22 16:19:28 76

原创 1098 Insertion or Heap Sort (25 point(s)) PAT甲级

1098 Insertion or Heap Sort (25 point(s))插入排序、堆排序题目According to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data, fi

2021-04-22 14:51:30 67

原创 1097 Deduplication on a Linked List (25 point(s)) PAT甲级

1097 Deduplication on a Linked List (25 point(s))链表题目Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value or a

2021-04-20 19:48:56 100

原创 1094 The Largest Generation (25 point(s)) PAT甲级

1094 The Largest Generation (25 point(s))DFSA family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation with the largest population.Input Specificati

2021-04-18 08:57:21 65

原创 1091 Acute Stroke (30 point(s)) PAT甲级

1091 Acute Stroke (30 point(s))BFS题目One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the core regions are identified in each MRI slice, your job is to calculate the volu

2021-04-17 10:07:19 125

原创 1090 Highest Price in Supply Chain (25 point(s)) PAT甲级

1090 Highest Price in Supply Chain (25 point(s))DFS题目A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone on the

2021-04-16 15:32:55 131

原创 1096 Consecutive Factors (20 point(s)) PAT甲级

1096 Consecutive Factors (20 point(s))题目Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are the three consecutive numbers. Now given any positive N

2021-04-16 14:34:45 69

原创 1087 All Roads Lead to Rome (30 point(s)) PAT甲级

1087 All Roads Lead to Rome (30 point(s))Dijkstra+DFS题目Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:Each

2021-04-14 12:00:30 133

原创 1114 Family Property (25 point(s)) PAT甲级

1114 Family Property (25 point(s))并查集题目This time, you are supposed to help us collect the data for family-owned property. Given each person’s family members, and the estate(房产)info under his/her own name, we need to know the size of each family, and the

2021-04-13 20:15:00 97

原创 1113 Integer Set Partition (25 point(s)) PAT甲级

1113 Integer Set Partition (25 point(s))非常简单题目Given a set of N (>1) positive integers, you are supposed to partition them into two disjoint sets A1 and A2 of n1 and n2 numbers, respectively. Let S1 and S2 denote the sums of all the numbers in A1 and

2021-04-13 20:10:22 95

原创 1112 Stucked Keyboard (20 point(s)) PAT甲级

1112 Stucked Keyboard (20 point(s))字符串题目On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear repeatedly on screen for k times.Now given a resulting string on

2021-04-13 20:09:19 75

原创 1018 Public Bike Management (30 point(s)) PAT甲级

1018 Public Bike Management (30 point(s))DFS+剪枝题目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 any station and return it to any other stations in the city

2021-04-13 20:02:38 75

原创 vs2019报错 声明与xxxx不兼容

vs2019报错 声明与xxxx不兼容编写大程的时候出现的报错一下子有11条,主要是意外的类型int, 无法识别的标识符这样子的报错,网上直接查找报错解决方法都无法解决。然后鼠标移到错误行的时候发现有这样不兼容的报错提示,查了一下才得到解决。最终发现是因为自己在“GUI.h”里面#include 了“Image.h”,然后在“Image.h”里面又#include 了“GUI.h”,所以#pragma once之类的都没用,它们套在一起了……删掉Image里面的#include就没有事了。主要还是因为

2020-06-01 21:25:08 12741

空空如也

空空如也

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

TA关注的人

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