E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
practise
1021. Deepest Root (25)
原题地址:http://www.patest.cn/contests/pat-a-
practise
/1021Agraphwhichisconnectedandacycliccanbeconsideredatree.Theheightofthetreedependsontheselectedroot.Nowyouaresupposedtofindtherootthatresultsinahighes
dyedeny
·
2015-09-05 22:20
PAT
1004. Counting Leaves (30)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1004Afamilyhierarchyisusuallypresentedbyapedigreetree.Yourjobistocountthosefamilymemberswhohavenochild.InputEachinputfilecontainsonetestcase.Eachcases
qq_26437925
·
2015-09-03 16:00
1058. A+B in Hogwarts (20) -- 数据范围问题
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1058/* int,long,longlong类型的范围 unsignedint0~4294967295
qq_26437925
·
2015-09-03 15:00
1080. Graduate Admission (30)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1080#include #include #include #include #include #include
qq_26437925
·
2015-09-03 14:00
1059. Prime Factors (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1059#include #include #include #include #include #include
qq_26437925
·
2015-09-02 21:00
1013. Battle Over Cities (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1013Itisvitallyimportanttohaveallthecitiesconnectedbyhighwaysinawar.Ifacityisoccupiedbytheenemy
qq_26437925
·
2015-09-02 15:00
1029. Median (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1029//就是合并两个有序数组的过程/*http://www.patest.cn/contests/
qq_26437925
·
2015-09-02 14:00
1032. Sharing (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1032链表考研真题/*1032.Sharing(25)http://www.patest.cn/contests
qq_26437925
·
2015-09-01 21:00
1094. The Largest Generation (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1094/*1094.TheLargestGeneration(25)http://www.patest.cn
qq_26437925
·
2015-09-01 20:00
1098. Insertion or Heap Sort (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1098对于堆排序中间序列:6451032789首先6与2交换数据变成:2451036789(6,7,
qq_26437925
·
2015-09-01 14:00
PAT (Basic Level)
Practise
(中文) 1016. 部分A+B (15)
1016.部分A+B(15)时间限制100ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue正整数A的“DA(为1位整数)部分”定义为由A中所有DA组成的新整数PA。例如:给定A=3862767,DA=6,则A的“6部分”PA是66,因为A中有2个6。现给定A、DA、B、DB,请编写程序计算PA+PB。输入格式:输入在一行中依次给出A、DA、B、DB,中间
fjinhao
·
2015-08-31 20:00
pat
1076. Forwards on Weibo (30)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/10761076.ForwardsonWeibo(30)时间限制3000ms内存限制65536kB代码长度限制
qq_26437925
·
2015-08-29 10:00
bfs
Consecutive Factors (20)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1096/*PAT1096--浙大2015机试题--ConsecutiveFactors(20)http
qq_26437925
·
2015-08-24 13:00
1055. The World's Richest (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1055这题需要剪枝(需要仔细读题目),网上参考了之后写的ac代码如下/*1055.TheWorld'sRichest
qq_26437925
·
2015-08-23 15:00
PAT-PAT (Advanced Level)
Practise
1001. A+B Format (20) 【二星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1001题面:1001.A+BFormat(20)Calculatea+bandoutputthesuminstandardformat
David_Jett
·
2015-08-20 10:00
水题
pat
PAT-PAT (Advanced Level)
Practise
1031. Hello World for U (20) (图形打印) 【二星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1031题面:1031.HelloWorldforU(20)GivenanystringofN(>=5
David_Jett
·
2015-08-20 09:00
图形
水题
pat
PAT-PAT (Advanced Level)
Practise
1011. World Cup Betting (20) (套公式) 【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1011题面:1011.WorldCupBetting(20)Withthe2010FIFAWorldCuprunning
David_Jett
·
2015-08-19 20:00
pat
PAT-PAT (Advanced Level)
Practise
1006. Sign In and Sign Out (25) (简单题)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1006题面:1006.SignInandSignOut(25)Atthebeginningofeveryday
David_Jett
·
2015-08-19 19:00
pat
PAT-PAT (Advanced Level)
Practise
1027. Colors in Mars (20) (简单进制转换)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1027题面:1027.ColorsinMars(20)PeopleinMarsrepresentthecolorsintheircomputersinasimilarwayastheEarthpeople.Thatis
David_Jett
·
2015-08-19 19:00
pat
PAT-PAT (Advanced Level)
Practise
1008. Elevator (20) (简单模拟)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1008题面:1008.Elevator(20)Thehighestbuildinginourcityhasonlyoneelevator.ArequestlistismadeupwithNpositivenumbers.Thenumbersdenoteatwhichfloorstheelevato
David_Jett
·
2015-08-19 19:34
编程题——模拟
PAT
刷PAT
申Offer
PAT-PAT (Advanced Level)
Practise
1008. Elevator (20) (简单模拟)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1008题面:1008.Elevator(20)Thehighestbuildinginourcityhasonlyoneelevator.ArequestlistismadeupwithNpositivenumbers.Thenumbersdenoteatwhichfloorstheelevato
David_Jett
·
2015-08-19 19:00
模拟
pat
1073. Scientific Notation (20)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1073字符串处理,但是如果想错了,就会写很多,并且思路较乱,下面是参考着写的,需要反复思考和练习#include
qq_26437925
·
2015-08-19 16:00
1075. PAT Judge (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1075这种题目PAT常考,就是构造结构体,写比较方法,还有输出的时候要注意题目的要求,把vector
qq_26437925
·
2015-08-19 14:00
1053. Path of Equal Weight (30)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1053考察排序和深度搜索(用递归实现),要按照题目的要求输出,刚开始用了队列,没能按找要求输出#include
qq_26437925
·
2015-08-19 14:00
递归
PAT-PAT (Advanced Level)
Practise
1005. Spell It Right (20) (简单模拟题)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1005题面:1005.SpellItRight(20)Givenanon-negativeintegerN
David_Jett
·
2015-08-19 13:36
编程题——模拟
PAT
刷PAT
申Offer
PAT-PAT (Advanced Level)
Practise
1005. Spell It Right (20) (简单模拟题)【一星级】
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1005题面:1005.SpellItRight(20)Givenanon-negativeintegerN
David_Jett
·
2015-08-19 13:00
模拟
pat
1060. Are They Equal (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1060这题就是一道纯粹的字符串处理的题目,不过要考虑很多情况特别是涉及到0的情况,还有是否是小数,做题的时候要列举多种不同的情况如
qq_26437925
·
2015-08-19 13:00
1097. Deduplication on a Linked List (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1097主要是构造结构体和建立两个链表,这里用到了map来表示绝对值是否存在,很方便的解决了问题,基本不用指针
qq_26437925
·
2015-08-18 14:00
1099. Build A Binary Search Tree (30)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1099搜索二叉树的建立与遍历,比较简单,采用合适的c++stl写很快#include #include
qq_26437925
·
2015-08-18 14:00
1079. Total Sales of Supply Chain (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1079此题采用queue和map求每一个节点的层数,并统计,叶子层的总数,注意n==1的特殊情况(否则扣一分
qq_26437925
·
2015-08-17 19:00
1094. The Largest Generation (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1094经典的queue处理类似树结构的题目,类似BFS,层次遍历#include #include
qq_26437925
·
2015-08-17 16:00
1095. Cars on Campus (30)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1095这题处理起来比较繁,充分考察C++STL的使用下面是ac代码,仍需要大量优化#include
qq_26437925
·
2015-08-17 15:00
c++-stl
1091. Acute Stroke (30) -- DFS(三维空间)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1091这题题目理解很关键,就是个三维空间,每一个点的相邻点有6个,下面是参考网上的代码写出来的可以ac
qq_26437925
·
2015-08-16 17:00
DFS
1090. Highest Price in Supply Chain (25)
题目地址http://www.patest.cn/contests/pat-a-
practise
/1090Asupplychainisanetworkofretailers(零售商),distributors
qq_26437925
·
2015-08-16 16:00
Queue
1088. Rational Arithmetic (20)
题目地址http://www.patest.cn/contests/pat-a-
practise
/1088Fortworationalnumbers,yourtaskistoimplementthebasicarithmetics
qq_26437925
·
2015-08-16 16:00
1087. All Roads Lead to Rome (30) -- Dijkstra经典
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1087IndeedtherearemanydifferenttouristroutesfromourcitytoRome.Youaresupposedtofindyourclientstheroutewiththeleastcostwhilegainingthemosthappiness.Inpu
qq_26437925
·
2015-08-15 17:00
dijkstra
1085. Perfect Sequence (25)
题目地址:http://www.patest.cn/contests/pat-a-
practise
/1085Givenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea
qq_26437925
·
2015-08-15 17:00
二分查找
1081. Rational Sum (20)
题目地址http://www.patest.cn/contests/pat-a-
practise
/1081GivenNrationalnumbersintheform“numerator/denominator
qq_26437925
·
2015-08-14 17:00
数学
1080. Graduate Admission (30)
题目地址http://www.patest.cn/contests/pat-a-
practise
/1080此题主要是个条件排序,还用到了map #include #include #include #include
qq_26437925
·
2015-08-14 17:00
排序
1056. Mice and Rice (25) 排序 模拟 构造结构体
这里用到了vector对结构体的不同规则排序/*http://www.patest.cn/contests/pat-a-
practise
/10561056.MiceandRice(25)一次ac*/ #
qq_26437925
·
2015-08-12 15:00
结构体-排序
PAT 1001.A+B Format
原题地址:http://www.patest.cn/contests/pat-a-
practise
/10011001.A+BFormat(20)Calculatea+bandoutputthesuminstandardformat–thatis
dyedeny
·
2015-07-14 21:57
PAT
PAT (Basic Level)
Practise
(中文)-1021. 个位数统计 (15)
1021.个位数统计(15)时间限制100ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue给定一个k位整数N=dk-1*10k-1+...+d1*101+d0(00),请编写程序统计每种不同的个位数字出现的次数。例如:给定N=100311,则有2个0,3个1,和1个3。输入格式:每个输入包含1个测试用例,即一个不超过1000位的正整数N。输出格式:对N中
fjinhao
·
2015-07-12 22:00
C语言
pat
1037. 在霍格沃茨找零钱(20)
如题:http://www.patest.cn/contests/pat-b-
practise
/1037如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统——就如海格告诉哈利的:“十七个银西可(Sickle
Twenty_seven
·
2015-07-11 22:11
pat
basic
1039. Course List for Student (25)
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1039题目:1039.CourseListforStudent(25)时间限制200ms内存限制65536kB
陈小旭
·
2015-06-24 22:52
PAT
1021. Deepest Root (25)
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1021题目:1021.DeepestRoot(25)时间限制1500ms内存限制65536kB代码长度限制
陈小旭
·
2015-06-23 17:21
PAT
1018. Public Bike Management (30)
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1018题目:1018.PublicBikeManagement(30)时间限制400ms内存限制65536kB
Apie_CZX
·
2015-06-23 15:00
dijkstra
pat
多路径
简单的线程池
package vortex.
practise
.Threads; import java.util.LinkedList; import java.util.List; public class
vortexchoo
·
2015-05-15 14:00
线程池
1017. Queueing at Bank (25)
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1017题目:时间限制400ms内存限制65536kB代码长度限制16000B判题程序Standard
Apie_CZX
·
2015-05-08 14:00
pat
排队
1016. Phone Bills (25)
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1016题目:时间限制400ms内存限制65536kB代码长度限制16000B判题程序Standard
Apie_CZX
·
2015-05-07 09:00
pat
电话记录
费用计算
1015. Reversible Primes (20)
题目链接:http://www.patest.cn/contests/pat-a-
practise
/1015题目:时间限制400ms内存限制65536kB代码长度限制16000B判题程序Standard
Apie_CZX
·
2015-05-06 17:00
质数
pat
倒叙数
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他