原创 PAT甲級 1088
PAT甲級 1088題目 Rational Arithmetic解析代碼 題目 Rational Arithmetic For two rational numbers, your task is to implement th
原创 PAT甲級 1097
PAT甲級 1097題目解析代碼 題目 Given a singly linked list L with integer keys, you are supposed to remove the nodes with dupl
原创 PAT甲級 1083
PAT甲級 1083題目 List Grades解析代碼 題目 List Grades Given a list of N student records with name, ID and grade. You are s
原创 PAT甲級 1078
PAT甲級 1078題目 Hashing解析代碼 題目 Hashing The task of this problem is simple: insert a sequence of distinct positive int
原创 PAT甲級 1096
PAT甲級 1096題目 Consecutive Factors解析代碼 題目 Consecutive Factors Among all the factors of a positive integer N, there m
原创 PAT甲級 1084
PAT甲級 1084題目 Broken Keyboard解析代碼 題目 Broken Keyboard On a broken keyboard, some of the keys are worn out. So when y
原创 PAT甲級 1113
PAT甲級 1113題目 Integer Set Partition解析代碼 題目 Integer Set Partition Given a set of N (>1) positive integers, you are s
原创 PAT甲級 1128
PAT甲級 1128題目 N Queens Puzzle解析代碼 題目 N Queens Puzzle The “eight queens puzzle” is the problem of placing eight ches
原创 PAT甲級 1116
PAT甲級 1116題目 Come on! Let's C解析代碼 題目 Come on! Let’s C “Let’s C” is a popular and fun programming contest hosted by
原创 PAT甲級 1095
PAT甲級 1095題目 Cars on Campus解析代碼 題目 Cars on Campus Zhejiang University has 8 campuses and a lot of gates. From each
原创 PAT甲級 1020
PAT甲級 1020題目 Tree Traversals解析代碼 題目 Tree Traversals Suppose that all the keys in a binary tree are distinct positi
原创 PAT甲級 1102
PAT甲級 1102題目解析代碼 題目 The following is from Max Howell @twitter: Google: 90% of our engineers use the software you w
原创 PAT甲級 1106
PAT甲級 1106PAT甲級 1106解析代碼 PAT甲級 1106 A supply chain is a network of retailers(零售商), distributors(經銷商), and supplier
原创 PAT甲級 1125
PAT甲級 1125題目 Chain the Ropes解析代碼 題目 Chain the Ropes Given some segments of rope, you are supposed to chain them in
原创 PAT甲級 1100
PAT甲級 1100題目 Mars Numbers解析代碼 題目 Mars Numbers People on Mars count their numbers with base 13: Zero on Earth is ca