随笔分类 -  PAT

摘要:题目大意: With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams do 阅读全文
posted @ 2022-08-12 16:33 D_coding_blog 阅读(26) 评论(0) 推荐(0)
摘要:题目描述: This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: K N1​ aN1​ ​ N2​ aN2​ ​ ... NK​ aNK​ ​ where K i 阅读全文
posted @ 2022-08-12 16:23 D_coding_blog 阅读(27) 评论(0) 推荐(0)
摘要:题目描述: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors th 阅读全文
posted @ 2022-08-12 16:18 D_coding_blog 阅读(33) 评论(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 th 阅读全文
posted @ 2022-08-12 16:11 D_coding_blog 阅读(29) 评论(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 cas 阅读全文
posted @ 2022-08-12 15:57 D_coding_blog 阅读(44) 评论(0) 推荐(0)
摘要:题目描述: Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are le 阅读全文
posted @ 2022-08-12 15:47 D_coding_blog 阅读(45) 评论(0) 推荐(0)
摘要:(20)PAT甲级 1001 A+B Format(模拟 字符串) (25)PAT甲级 1002 A+B for Polynomials(模拟 多项式加法 map) (25)PAT甲级 1003 Emergency(DFS vector) (30)PAT甲级 1004 Counting Leaves 阅读全文
posted @ 2022-08-12 15:00 D_coding_blog 阅读(147) 评论(0) 推荐(0)
摘要:题目描述: Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All 阅读全文
posted @ 2022-08-10 01:38 D_coding_blog 阅读(49) 评论(0) 推荐(0)
摘要:题目描述: A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 i 阅读全文
posted @ 2022-08-09 21:05 D_coding_blog 阅读(35) 评论(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 阅读全文
posted @ 2022-08-09 18:40 D_coding_blog 阅读(70) 评论(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 t 阅读全文
posted @ 2022-08-08 23:29 D_coding_blog 阅读(35) 评论(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 - 阅读全文
posted @ 2022-08-08 16:30 D_coding_blog 阅读(37) 评论(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 11 阅读全文
posted @ 2022-08-08 00:04 D_coding_blog 阅读(45) 评论(0) 推荐(0)
摘要:题目描述: Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ..., Nj​ } where 1≤i≤j≤K. The Max 阅读全文
posted @ 2022-08-06 14:42 D_coding_blog 阅读(36) 评论(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: 阅读全文
posted @ 2022-08-05 23:39 D_coding_blog 阅读(29) 评论(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 s 阅读全文
posted @ 2022-08-05 22:59 D_coding_blog 阅读(44) 评论(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 Spec 阅读全文
posted @ 2021-08-20 13:16 D_coding_blog 阅读(205) 评论(0) 推荐(0)
摘要:Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2021-08-20 00:03 D_coding_blog 阅读(35) 评论(0) 推荐(0)
摘要:设计函数求一元多项式的导数。(注:xn(n为整数)的一阶导数为nxn−1。) 输入格式: 以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过 1000 的整数)。数字间以空格分隔。 输出格式: 以与输入相同的格式输出导数多项式非零项的系数和指数。数字间以空格分隔,但结尾不能有多余空格。注意“ 阅读全文
posted @ 2021-08-19 21:03 D_coding_blog 阅读(41) 评论(0) 推荐(0)
摘要:大家应该都会玩“锤子剪刀布”的游戏:两人同时给出手势,胜负规则如图所示: 现给出两人的交锋记录,请统计双方的胜、平、负次数,并且给出双方分别出什么手势的胜算最大。 输入格式: 输入第 1 行给出正整数 N(≤105),即双方交锋的次数。随后 N 行,每行给出一次交锋的信息,即甲、乙双方同时给出的的手 阅读全文
posted @ 2021-08-16 19:14 D_coding_blog 阅读(57) 评论(0) 推荐(0)