Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem J: 回文数(2.1)
Problem J: 回文数(2.1)
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Solved: 4
Submit: 23
Statistics
Description
有 N 正整数, 取其中两个数,使他们的和恰好是回文数,请问有多少种方案?
https://blog.csdn.net/weixin_42494628/article/details/117108400
Input
第 1 行, 1 个整数 N, 范围在[1…10000]。 第 2 行, N 个正整数,每个数用空格分开,每个数范围在[1…10000]。
Output
一行,回文数方案数。
Sample Input
Copy
4 1 9 8 3
Sample Output
Copy
3