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
PAT甲级1072
PAT甲级
题目合集
1001C++新特性里的to_string()函数可以将数字变为字符串,非常方便#include#includeusingnamespacestd;intmain(){inta,b;cin>>a>>b;stringc=to_string(a+b);intflag=0;for(inti=0;i#include#include#includeusingnamespacestd;intmain(){fl
恰似一碗咸鱼粥
·
2019-03-12 13:28
pat甲级
1051
#include#include#includeusingnamespacestd;vectorv;intm,n,k;boolisok(){vectortest;intmaxnum=0;//入过栈的最大值for(inti=0;im)returnfalse;maxnum=v[i];}if(test.back()==v[i])test.pop_back();elsereturnfalse;}retur
Herbzhou
·
2019-03-04 14:37
PAT甲级
1006
1006SignInandSignOut(25分)Atthebeginningofeveryday,thefirstpersonwhosignsinthecomputerroomwillunlockthedoor,andthelastonewhosignsoutwilllockthedoor.Giventherecordsofsigningin'sandout's,youaresupposedto
LowBee
·
2019-02-26 19:00
PAT甲级
1001
1001A+BFormat(20分)Calculatea+bandoutputthesuminstandardformat--thatis,thedigitsmustbeseparatedintogroupsofthreebycommas(unlesstherearelessthanfourdigits).InputSpecification:Eachinputfilecontainsonetes
LowBee
·
2019-02-26 18:00
PAT甲级
题解目录
编号题目考点1001A+BFormat字符串处理1002A+BforPolynomials数学运算1003Emergency图、单源点最短路径、Dijkstra1004CountingLeaves树、层序遍历1005SpellItRight字符串处理1006SignInandSignOut快乐模拟1007MaximumSubsequenceSum动态规划1008Elevator快乐模拟1009Pr
爱的魔力转圈圈
·
2019-02-17 22:35
PAT甲级
PAT甲级
题解 全部 JAVA版 持续更新
恰逢弟弟准备考
PAT甲级
,总是问我一些问题。又见网上
PAT甲级
多为c/c++版本的答案。罕有JAVA版本的合集。特此做一份,希望能够早日刷完吧,仅供参考。如有疏漏,还望大家赐教。
杨小码
·
2019-01-30 16:26
【HDOJ】「
1072
」BFS
原题出处ProblemDescriptionIgnatiushadanightmarelastnight.Hefoundhimselfinalabyrinthwithatimebombonhim.Thelabyrinthhasanexit,Ignatiusshouldgetoutofthelabyrinthbeforethebombexplodes.Theinitialexplodingtimeo
BBBoundary
·
2019-01-21 20:52
HDOJ
HDU寒假集训
PAT甲级
真题——1008 Elevator (20 分)
1008Elevator(20分)Thehighestbuildinginourcityhasonlyoneelevator.ArequestlistismadeupwithNpositivenumbers.Thenumbersdenoteatwhichfloorstheelevatorwillstop,inspecifiedorder.Itcosts6secondstomovetheelevat
逃课去学习:)
·
2019-01-03 19:39
PAT
c++
算法学习
算法学习
PAT
PAT甲级
真题(字符串)——1006 Sign In and Sign Out (25 分)
1006SignInandSignOut(25分)Atthebeginningofeveryday,thefirstpersonwhosignsinthecomputerroomwillunlockthedoor,andthelastonewhosignsoutwilllockthedoor.Giventherecordsofsigningin’sandout’s,youaresupposedto
逃课去学习:)
·
2019-01-03 16:53
PAT
字符串
算法学习
c++
PAT甲级
真题(字符串)——1005 Spell It Right (20 分)
1005SpellItRight(20分)Givenanon-negativeintegerN,yourtaskistocomputethesumofallthedigitsofN,andoutputeverydigitofthesuminEnglish.InputSpecification:Eachinputfilecontainsonetestcase.Eachcaseoccupiesonel
逃课去学习:)
·
2019-01-03 15:38
字符串
算法学习
PAT
c++
工业仪器仪表控制LCD面板显示/ VCD 播放器LCD液晶显示选型手册
VK1024B2.4V~5.2V6seg4com6362偏置电压1/21/3S0P-16VK1056B2.4V~5.2V14seg4com143142偏置电压1/21/3SOP-24/SSOP-24VK
1072
B2.4V
慢慢3
·
2019-01-03 15:58
VK0256
VK1621S
VK1024B
PAT甲级
真题(迪杰斯特拉算法)——1003. Emergency (25)
1003Emergency(25分)Asanemergencyrescueteamleaderofacity,youaregivenaspecialmapofyourcountry.Themapshowsseveralscatteredcitiesconnectedbysomeroads.Amountofrescueteamsineachcityandthelengthofeachroadbetw
逃课去学习:)
·
2019-01-02 17:08
PAT
图
2019新年计划
2019计划如下:1.刷题达到
PAT甲级
80分的级别,最好能考一下PAT2.锻炼身体,均衡膳食,不求肌肉达人,但求身体健康3.积极准备考研。
Amber_technology
·
2018-12-31 22:44
未被关进制度笼子的中国马拉松
2018全国田径工作会议公布的数据显示,截至11月2日,中国2018年已举办800人以上路跑、300人以上越野赛共计
1072
场,参加人次530万,其中中国田径协会认证赛事310场,参赛人次320万,马拉松在中国的狂热发展算是暴露无遗
古木月
·
2018-12-17 16:36
2018年12月份冬季
PAT甲级
考试总结
本来打算这个学期把
PAT甲级
的练习题都刷完,奈何到了学期末专业课复习太困难,并且还有六级考试,实训,一大堆作业,导致了刷题的滞后,最后回看了下博客,才做了二十几道,就很慌的踏入考场。
语海与冰
·
2018-12-09 20:42
个人总结
PAT
「半自由行」七年前和丽江有个约,初冬泸沽湖享受“海风”,一朵芙蕖,开过尚盈盈
按照惯例,先放几张图片镇楼,下文开始介绍景点、美图摄影攻略等...咨询(天气/交通):yld
1072
杨雯雯——薇☆旅行目的地:泸沽湖、玉龙雪山、蓝月谷、丽江古城、香格里拉、束河古镇、大理用时:9天8晚关键词
杨雯雯_旅行规划师
·
2018-12-01 16:35
PAT 备考——图论算法(二)最短路径
最短路径算法是
PAT甲级
考试常考算法,具体说来,最短路径包括Dijkstra算法、Floyd算法,其余的Bellman-Ford和SPFA基本不会考(参《算法笔记》胡凡,曾磊著)目录一、最短路径基本概念与问题分类
Dirichlet_zju
·
2018-11-28 15:05
PAT
未完成
HDU
1072
Nightmare 题解
NightmareTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):14260AcceptedSubmission(s):6930ProblemDescriptionIgnatiushadanightmarelastnight.Hefoundhimselfinalaby
微生泽驰
·
2018-11-16 05:00
linux db2v9.7 意外退出 SQL
1072
C
SQL
1072
CThedatabasemanagerresourcesareinaninconsistentstate.DB2mayhavebeenincorrectlyterminated,oranotherapplicationmaybeusingsy
chinazzb
·
2018-11-10 19:32
database
Hash(哈希/散列)表中冲突处理及命中计算
引言写这篇博客的契机是在刷
pat甲级
题遇到了一道写哈希的题目,结果英文太次被欺负了。之后靠翻译读懂题目,结果被命中率给坑了,遥想起以前打比赛好像也被这个坑过,愤懑不平来写博。
二律背反GG
·
2018-10-31 17:00
PAT甲级
1043 Is It a Binary Search Tree (25 分)
原题链接
PAT甲级
1043IsItaBinarySearchTree(25分)题目大意给定一棵先序遍历的树,判断是二叉搜索树还是镜像的二叉搜索树(即左子树的值大于或等于根节点的值,右子树的值小于根节点的值
Rick97
·
2018-10-29 23:23
PAT甲级
题集
1001A+BFormat(20)分题解链接要点:1002A+BforPolynomials(25)分题解链接要点:1003Emergency(25)分题解链接要点:1004CountingLeaves(30)分题解链接要点:1005SpellItRight(20)分题解链接要点:1006SignInandSignOut(25)分题解链接要点:1007MaximumSubsequenceSum(2
galesaur_wcy
·
2018-10-28 16:46
PAT甲级题
【BZOJ
1072
/SCOI2007】排列perm
1072
:[SCOI2007]排列permTimeLimit:10SecMemoryLimit:128MBSubmit:3111Solved:1959Description给一个数字串s和正整数d,统计
sszxzzh
·
2018-10-23 21:05
状态压缩DP
BZOJ
pat甲级
1019
题目链接1019GeneralPalindromicNumber(20分)AnumberthatwillbethesamewhenitiswrittenforwardsorbackwardsisknownasaPalindromicNumber.Forexample,1234321isapalindromicnumber.Allsingledigitnumbersarepalindromicnum
小小怪成长日记
·
2018-10-15 15:57
简单题
pat甲级
翻车题目
pat甲级
1004 Counting Leaves(输出每层叶子结点)(dfs)
#include#include#includeusingnamespacestd;vectorv[100];intmaxdepth=-1,book[105];voiddfs(intindex,intdepth){if(v[index].size()==0){book[depth]++;maxdepth=max(maxdepth,depth);return;}for(inti=0;i>n>>m;f
Alternative_19
·
2018-10-14 01:34
pat甲级
PAT甲级
部分python解题记录
用Python和Java来写
PAT甲级
因为博主对C语言和C++没有太多的研究(其实就是懒),所以习题集里面有部分习题的运行时间难免会超过习题的限定时间,能力所限,实在抱歉(๑•ᴗ•๑)如果需要使用C++
Amos H
·
2018-09-18 14:10
PAT
Python
这一年的我
总目标,夺取蓝桥杯省一等奖,国家三等奖,icpc省赛一等奖-二等奖,
PAT甲级
以上奖状在项目上紧跟学习课程,能够自己开发网站,初步学习深度学习技术并简单应用,学习推荐算法并简单应用,初步掌握Python
Suprit
·
2018-09-13 00:00
谏言
记 2018.9.8
PAT甲级
&题解
写在前面前两天考完就想写了,结果一直拖到现在orz……8月中旬的时候无意中看到PAT这个东东,因为刚好在准备保研,要复习机试的东西,就报了这个,虽然之前有接触过一点点ACM,不过个人对这种数据结构算法一直都不是特别擅长,准备了半个多月,每天都在刷题总结复习中度过,直到考完才感觉松了一口气,放一下分数和排名吧=w=(虽然感觉可以考的更好,不过也还算满意啦)分数:91/100排名:78/2237感受这
LemonXQ
·
2018-09-11 15:34
PAT
个人关于PAT的认识心得和体会
前言今天考了18年9月份的
PAT甲级
考试,虽然成绩不理想,但是也给一个阶段划上了句号。有一些心得和反思,写给自己,也希望能帮助他人。
CrazyOnes
·
2018-09-09 16:11
路漫漫其修远兮
【
PAT甲级
】1110 Complete Binary Tree(25 分)(完全二叉树)
题目链接Givenatree,youaresupposedtotellifitisacompletebinarytree.InputSpecification:Eachinputfilecontainsonetestcase.Foreachcase,thefirstlinegivesapositiveintegerN(≤20)whichisthetotalnumberofnodesinthetre
feng_zhiyu
·
2018-09-05 23:43
ACM_二叉树
PAT
BZOJ
1072
-[SCOI2007]排列perm(暴力)
排列随便搞:输入一个长度小于等于10的数串,问这个串的所有排列被d整除的个数,Tusingnamespacestd;intd;intmain(){intn;inta[15];charstr[15];intT;scanf("%d",&T);while(T--){scanf("%s",str);n=strlen(str);scanf("%d",&d);for(inti=0;i
Apel_dey
·
2018-09-04 15:51
杂题
动态规划
PAT甲级
题考点(转载各个大佬)
感谢各位大佬嘻嘻还有自己推下自己的写题过程和考前复习。。。虽然不咋地。。。不过复习完会很有底气题集。。有一点不会是转载巨巨们的https://blog.csdn.net/galesaur_wcy/article/details/83474880还有这个是本人复习过程和考完感想https://blog.csdn.net/galesaur_wcy/article/details/82347781柳婼の
galesaur_wcy
·
2018-09-02 15:43
PAT甲级题
【
PAT甲级
】1102 Invert a Binary Tree(25 分)(二叉树的层序与前序遍历)
题目链接ThefollowingisfromMaxHowell@twitter:Google:90%ofourengineersusethesoftwareyouwrote(Homebrew),butyoucan'tinvertabinarytreeonawhiteboardsofuckoff.Nowit'syourturntoprovethatYOUCANinvertabinarytree!In
feng_zhiyu
·
2018-09-01 18:38
ACM_二叉树
PAT
PAT甲级
--1093 Count PAT's(25 分)【逻辑题】
1093CountPAT's(25分)ThestringAPPAPTcontainstwoPAT'sassubstrings.Thefirstoneisformedbythe2nd,the4th,andthe6thcharacters,andthesecondoneisformedbythe3rd,the4th,andthe6thcharacters.Nowgivenanystring,youar
Imagirl1
·
2018-09-01 14:56
PAT
PAT甲级
--1102 Invert a Binary Tree(25 分)【反转二叉树+层序遍历+中序遍历】
1102InvertaBinaryTree(25分)ThefollowingisfromMaxHowell@twitter:Google:90%ofourengineersusethesoftwareyouwrote(Homebrew),butyoucan'tinvertabinarytreeonawhiteboardsofuckoff.Nowit'syourturntoprovethatYOUC
Imagirl1
·
2018-08-31 21:12
PAT
数据结构
STL
PAT (Advanced Level) Practice -
1072
Gas Station(30 分)
题目链接:点击打开链接题目大意:从m个加油站里面选取1个站点,让它离居民区的最近的人最远,并且所有的居民与它之间没有超出服务范围st。如果有很多个最远的加油站,输出距离所有居民区距离平均值最小的那个。如果平均值还是一样,就输出按照顺序排列加油站编号最小的那个。解题思路:因为加油站之间也是彼此有路连接的,所以最短路径计算的时候也要把加油站算上。所以我们就是对n+m个点进行Dijkstra计算最短路径
Lux_Sun
·
2018-08-30 20:23
#
ACM
#
PTA
#
Dijkstra
【
PAT甲级
】1101 Quick Sort(25 分)
题目链接Thereisaclassicalprocessnamedpartitioninthefamousquicksortalgorithm.Inthisprocesswetypicallychooseoneelementasthepivot.Thentheelementslessthanthepivotaremovedtoitsleftandthoselargerthanthepivottoi
feng_zhiyu
·
2018-08-30 12:29
PAT
PAT甲级
--1100 Mars Numbers(20 分)【map映射+字符串处理】
1100MarsNumbers(20分)PeopleonMarscounttheirnumberswithbase13:ZeroonEarthiscalled"tret"onMars.Thenumbers1to12onEarchiscalled"jan,feb,mar,apr,may,jun,jly,aug,sep,oct,nov,dec"onMars,respectively.Forthenex
Imagirl1
·
2018-08-28 14:04
PAT
博弈论问题
博弈论问题三个博弈论算法51Nod_1066Bash游戏51Nod_1067Bash游戏V251Nod_1068Bash游戏V351Nod_1069Nim游戏51Nod_
1072
威佐夫游戏
Enjoy_process
·
2018-08-21 00:56
ACM__博弈论
PAT甲级
1003 Emergency (Dj最短路)
Asanemergencyrescueteamleaderofacity,youaregivenaspecialmapofyourcountry.Themapshowsseveralscatteredcitiesconnectedbysomeroads.Amountofrescueteamsineachcityandthelengthofeachroadbetweenanypairofcities
donCoder
·
2018-08-16 15:35
ACM
PAT甲级
A+B for Polynomials (25)-
PAT甲级
Thistime,youaresupposedtofindA+BwhereAandBaretwopolynomials.InputEachinputfilecontainsonetestcase.Eachcaseoccupies2lines,andeachlinecontainstheinformationofapolynomial:KN1aN1N2aN2...NKaNK,whereKisthen
柳婼
·
2018-08-05 22:06
PAT
A+B Format (20)-
PAT甲级
Calculatea+bandoutputthesuminstandardformat--thatis,thedigitsmustbeseparatedintogroupsofthreebycommas(unlesstherearelessthanfourdigits).InputEachinputfilecontainsonetestcase.Eachcasecontainsapairofint
柳婼
·
2018-08-05 21:55
PAT
偶闻蝉鸣
占地面积
1072
公顷,是安徽省内唯一万亩城市水网森林。公园好美。
宁静遇夏雨
·
2018-07-29 20:54
PAT甲级
题目汇总及注意事项
[PATA1052]LinkedlistSorting注意事项:1.输出格式的控制,比如换行2.n是一个陷阱,最后链表可能会提前结束,所以需要遍历静态链表确定链表的实际长度。3.感慨一句,PAT不亏是ZJU的看门武器,对测试数据的封锁,对思维严密性的要求,都在leetcode之上。#include#includeusingnamespacestd;constintmaxn=100010;struc
Machanical-Thinking
·
2018-07-13 20:27
PAT
HDU
1072
Nightmare(dfs记忆化搜索+剪枝)
pid=
1072
题目大意:伊格内修斯身上的炸弹还有6分钟就要爆炸,他要想办法用最短的时间走出迷宫,0代表一堵墙,表示不可走,1代表没有任何东西,表示可走,2表示起点位置,3表示终点位置,4表示炸弹重置装置
Zookkk
·
2018-05-30 00:19
PAT 甲级1086 Tree Traversals Again (25) 前序中序求后序树的遍历
/*
PAT甲级
1086*/#include#include#include#includeusingnamespacestd;vectorpre,in,post;/*1确定根,确定左子树,确定右子树。
动感新势力fan
·
2018-05-24 22:48
PAT 甲级 1120 Friend Numbers (20) set的应用
/*
PAT甲级
1120set*/#include#includeusingnamespacestd;intid(intnum){intsum=0;while(num){sum=sum+num%10;num
动感新势力fan
·
2018-05-24 22:04
算法笔记:深度优先搜索(自用)
相关题目
PAT甲级
1103.IntegerFactorization(30)//givenN,K,PmakeN=n1^p+n2^p+...
烤肉拌饭多加饭
·
2018-05-06 14:42
树的习题(From
PAT甲级
& LeetCode
PAT甲级
二叉树的遍历1086.TreeTraversalsAgain1102.InvertaBinaryTree树的遍历1079.TotalSalesofSupplyChain1090.HighestPriceinSupplyChain1094
烤肉拌饭多加饭
·
2018-04-23 19:07
欧阳修词全集
欧阳修词全集(1)欧阳修(1007-
1072
),北宋政治家、文学家。唐宋八大家之一。字永叔,号醉翁,晚号六一居士。吉州永丰(今属江西)人。欧阳修自称庐陵人,因为吉州原属庐陵郡。
汉唐雄风
·
2018-04-07 08:38
上一页
25
26
27
28
29
30
31
32
下一页
按字母分类:
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
其他