# 1015 Reversible Primes (PTA)

reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system[……]

# 1065 A+B and C (64bit) (PTA)

Given three integers AB and C in [−2​63​​,2​63​​], you are supposed to tell whether A+B>C.

[……]

# 1028 List Sorting (PTA)

Excel can sort records according to any column. Now you are supposed to imitate this function.

### Input Specification:

Each input file contains one[……]

# 1031 Hello World for U (PTA)

Given any string of N (≥5) characters, you are asked to form the characters into the shape of `U`. For example, `helloworld` can[……]

# 1009 Product of Polynomials (PTA)

This time, you are supposed to find A×B where A and B are two polynomials.

### Input Specification:

Each input file co[……]

# 02-线性结构4 Pop Sequence (PTA)

Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are[……]

# 02-线性结构3 Reversing Linked List (PTA)

Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For examp[……]

# 1002 A+B for Polynomials (PTA)

This time, you are supposed to find A+B where A and B are two polynomials.

### Input Specification:

Each input file co[……]

# 1001 A+B Format (PTA)

Calculate a+b and output the sum in standard format — that is, the digits must be separated into groups of three by commas (unless there ar[……]