The highest building in our city has only one elevator. […]
PAT (Advanced Level) Practice 1007 Maximum Subsequence Sum
Given a sequence of K integers { N1, N2, …, NK}. […]
PAT (Advanced Level) Practice 1006 Sign In and Sign Out
At the beginning of every day, the first person who sig […]
PAT (Advanced Level) Practice 1005 Spell It Right
Given a non-negative integer N, your task is to compute […]
PAT (Advanced Level) Practice 1004 Counting Leaves
A family hierarchy is usually presented by a pedigree t […]
PAT (Advanced Level) Practice 1003 Emergency
As an emergency rescue team leader of a city, you are g […]
PAT (Advanced Level) Practice 1002 A+B for Polynomials
This time, you are supposed to find A+B where A and B a […]
PAT (Advanced Level) Practice 1001 A+B Format
Calculate a+b and output the sum in standard format  […]
Vijos 1500 — 笨笨的单词排序
题目描述 笨笨有一些单词,他想要把这些单词按一定顺序排序。 现在笨笨有N(N<=1000)个单词,他想要 […]
洛谷 1093 — 奖学金
题目描述 某小学最近得到了一笔赞助,打算拿出其中一部分为学习成绩优秀的前5名学生发奖学金。期末,每个学生都有3 […]