PAT-A
文章平均质量分 95
Nanhuiyu
资深的python技术区程序员
展开
-
PAT-Apat甲级题1009(python和c++实现)
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 occupies 2 lines, and each line contains the information of a polynomial:K N1 aN1 N2 aN2 ... NK aNK原创 2024-02-07 20:02:50 · 777 阅读 · 0 评论 -
PAT-Apat甲级题1008(python和c++实现)
1008 ElevatorThe 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 the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, a原创 2024-02-05 22:40:07 · 740 阅读 · 0 评论 -
PAT-Apat甲级题1007(python和c++实现)
1007 Maximum Subsequence Sum作者 CHEN, YueGiven 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 Maximum Subsequence is the continuous subsequence which has th给定K个整数{ N1,原创 2024-02-04 17:15:39 · 913 阅读 · 0 评论 -
PAT-Apat甲级题1006(python和c++实现)
1006 Sign In and Sign Out作者 CHEN, Yue单位 浙江大学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. Given the records of signing in's and out's, you are s原创 2024-02-04 11:17:18 · 715 阅读 · 0 评论 -
PAT-Apat甲级题1005(python和c++实现)
1005 Spell It Right作者 CHEN, Yue单位 浙江大学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 Specification:Each input file contains one test case. Each case occupi原创 2024-02-03 22:10:17 · 638 阅读 · 0 评论 -
PAT-Apat甲级题1004(python和c++实现)
PAT-Apat甲级题1004(python和c++实现)家族等级通常由家谱树表示。你的工作是统计那些没有孩子的家庭成员。输入规范:每个输入文件包含一个测试用例。每种情况都以包含0原创 2024-02-02 22:35:06 · 970 阅读 · 0 评论 -
PAT-Apat甲级题1003(python和c++实现)下
PAT-Apat甲级题1003(python和c++实现)下,本题难度较大,思路尚未清晰的童鞋也不要气馁, 可以针对这部分内容多看看讲解或者是找一些简单题来练手, DFS题目重难点都在于DFS内容的设计原创 2024-01-29 14:04:17 · 818 阅读 · 0 评论 -
PAT-Apat甲级题1003(python和c++实现)上
PAT-Apat甲级题1003(python和c++实现)上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 roads. Amount of rescue teams in each city and the length of each road between原创 2024-01-28 22:45:13 · 1039 阅读 · 0 评论 -
PAT-Apat甲级题1002(python和c++实现)
PAT-Apat甲级题1002(python和c++实现)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 occupies 2 lines, and each line contains the information of a polynomial:=K N1原创 2024-01-28 17:21:45 · 866 阅读 · 0 评论 -
PAT-Apat甲级题1001(python和c++实现)
PAT-Apat甲级题1001(python和c++实现)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 than four digits).Input Specification:计算 a+b 并以标准格式输出和 - 即,数字必须通过逗号分成三组(除非数字少于四原创 2024-01-28 11:36:55 · 1031 阅读 · 0 评论