岁月悠悠,衰微只及肌肤;热忱抛却,颓唐必至灵魂。

Category
1060 Are They Equal
《算法笔记》

1060 Are They Equal

If a machine can save only 3 significant digits, the float n...
avatar
1059 Prime Factors
《算法笔记》

1059 Prime Factors

Given any positive integer N, you are supposed to find all o...
avatar
1013 数素数
《算法笔记》

1013 数素数

令 $P_i$ 表示第 i 个素数。现任给两个正整数$M \leq N \leq 10^4$,请输出 $P_M$ 到 $...
avatar
1069 The Black Hole of Numbers
《算法笔记》

1069 The Black Hole of Numbers

1069 The Black Hole of Numbers For any 4-digit integer excep...
avatar
1093 Count PAT's
《算法笔记》

1093 Count PAT’s

1093 Count PAT’s(递归,找规律) The string APPAPT contains tw...
avatar
简单贪心
《算法笔记》

简单贪心

1020 月饼 月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售...
avatar
1025 PAT Ranking
《算法笔记》

1025 PAT Ranking

Programming Ability Test (PAT) is organized by the College o...
avatar
1017 Queueing at Bank
PAT

1017 Queueing at Bank

Suppose a bank has K windows open for service. There is a ye...
avatar
c++最小堆
PAT

c++最小堆

包含头文件:#include <queue> 和队列基本操作相同: top 访问队头元素 empty 队列是...
avatar
1016 Phone Bills(这题是真恶心)
PAT

1016 Phone Bills(这题是真恶心)

A long-distance telephone company charges its customers by t...
avatar