Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
求回文数的个数
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 168, Accepted users: 155
Problem 10069 : No special judgement
Problem description
  所谓回文数是从左至右或从右至左读起来都是一样的数字,如:121是一个回文数。计算1至n间共有多少个回文数。

Input
  有多个测试数据,每个测试数据占一行,输入一个正整数n(1≤n≤9999)。

Output
  输出一个整数,表示回文数的个数。

Sample Input
900
1234
3456
8900
2367
Sample Output
98
111
133
187
122
Problem Source
  Teacher Grh 

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2024 today,16258751 total, since 2010-05-07