PAT甲级
zerou8400
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT 甲级 1001 A+B Format
开两个数组,一个存数字,一个存逗号,一开始用递归快点写了,发现逗号不好处理改用2个数组做了#include <iostream> #include "cstring" #include <stdio.h> #include "iomanip" #include "vector" #include "cmath" #include "stack" #inc原创 2018-02-11 18:37:09 · 182 阅读 · 0 评论 -
PAT 甲级 1009. Product of Polynomials (Map)
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...原创 2018-03-12 16:41:42 · 216 阅读 · 0 评论 -
PAT 甲级 1007. Maximum Subsequence Sum (DP 动态规划)
部分正确#include <iostream> #include "cstring" #include <stdio.h> #include "iomanip" #include "vector" #include "cmath" #include "stack" #include "algorithm" #include &原创 2018-02-20 17:52:27 · 243 阅读 · 0 评论 -
PAT 甲级 1008. Elevator
#include <iostream> #include "cstring" #include <stdio.h> #include "iomanip" #include "vector" #include "cmath" #include "stack" #include "algorithm" #include <m原创 2018-02-20 17:49:43 · 153 阅读 · 0 评论 -
PAT 甲级 1006. Sign In and Sign Out
测试用例Sample Input:3 CS301111 15:30:28 17:00:10 SC3021234 08:00:00 11:25:25 CS301133 21:45:00 21:58:40 Sample Output:SC3021234 CS301133输出最早的人和最晚的人#include <iostream> #include "cstring" #include &l...原创 2018-02-13 18:55:52 · 271 阅读 · 0 评论 -
PAT 甲级 1004. Counting Leaves 使用深度遍历(DFS)
A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.InputEach input file contains one test case. Each case starts with a line contai...原创 2018-02-12 14:05:40 · 244 阅读 · 0 评论 -
PAT 甲级 1005. Spell It Right (递归)
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 ca...原创 2018-02-12 18:33:01 · 248 阅读 · 0 评论 -
PAT 甲级 1003. Emergency 使用 优先队列 dijkstra 算法
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 l...原创 2018-02-12 14:27:52 · 290 阅读 · 0 评论 -
PAT 甲级 1002 A+B for Polynomials
This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polynomia...原创 2018-02-11 19:01:33 · 172 阅读 · 0 评论 -
PAT 甲级 1011. World Cup Betting (20)
#include <iostream> #include "cstring" #include <stdio.h> #include "iomanip" #include "vector" #include "cmath" #include "stack" #include "algorithm" #include <m原创 2018-03-20 17:15:31 · 163 阅读 · 0 评论
分享