随笔分类 -  PAT

上一页 1 ··· 4 5 6 7 8 9 下一页
摘要:A 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 t 阅读全文
posted @ 2020-04-02 09:28 Veritas_des_Liberty 阅读(203) 评论(0) 推荐(0)
摘要:Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g 阅读全文
posted @ 2020-04-01 22:13 Veritas_des_Liberty 阅读(152) 评论(0) 推荐(0)
摘要: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, a 阅读全文
posted @ 2020-04-01 15:17 Veritas_des_Liberty 阅读(205) 评论(0) 推荐(0)
摘要: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 va 阅读全文
posted @ 2020-04-01 00:16 Veritas_des_Liberty 阅读(207) 评论(0) 推荐(0)
摘要:According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2020-03-31 16:31 Veritas_des_Liberty 阅读(192) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2020-03-30 23:30 Veritas_des_Liberty 阅读(214) 评论(0) 推荐(0)
摘要:People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, m 阅读全文
posted @ 2020-03-30 15:37 Veritas_des_Liberty 阅读(196) 评论(0) 推荐(0)
摘要:Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules 阅读全文
posted @ 2020-03-29 22:17 Veritas_des_Liberty 阅读(220) 评论(0) 推荐(0)
摘要:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c 阅读全文
posted @ 2020-03-29 17:05 Veritas_des_Liberty 阅读(214) 评论(0) 推荐(0)
摘要:To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat 阅读全文
posted @ 2020-03-28 15:51 Veritas_des_Liberty 阅读(193) 评论(0) 推荐(0)
摘要:With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文
posted @ 2020-03-28 14:15 Veritas_des_Liberty 阅读(179) 评论(0) 推荐(0)
摘要:Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a 阅读全文
posted @ 2020-03-28 12:09 Veritas_des_Liberty 阅读(219) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2020-03-27 20:54 Veritas_des_Liberty 阅读(175) 评论(0) 推荐(0)
摘要:Given a sequence of K integers { N​1​​, N​2​​, ..., N​K​​ }. A continuous subsequence is defined to be { N​i​​, N​i+1​​, ..., N​j​​ } where 1. The Max 阅读全文
posted @ 2020-03-26 16:33 Veritas_des_Liberty 阅读(195) 评论(0) 推荐(0)
摘要:At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文
posted @ 2020-03-26 12:17 Veritas_des_Liberty 阅读(220) 评论(0) 推荐(0)
摘要:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2020-03-26 11:08 Veritas_des_Liberty 阅读(163) 评论(0) 推荐(0)
摘要:A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inp 阅读全文
posted @ 2020-03-24 19:07 Veritas_des_Liberty 阅读(182) 评论(0) 推荐(0)
摘要:As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2020-02-22 15:46 Veritas_des_Liberty 阅读(295) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2019-12-26 22:29 Veritas_des_Liberty 阅读(594) 评论(0) 推荐(0)
摘要:1001 A+B Format (20分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unl 阅读全文
posted @ 2019-12-24 22:20 Veritas_des_Liberty 阅读(386) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页