#3046. 【入门】五位回文偶数

【入门】五位回文偶数

说明

[md]

 请求出 <span style="background:white;">m~n  之间所有的 <span style="background:white;">5  位回文偶数,有多少个,总和是多少? <span style="background:white;"> 


 回文偶数指的是既是回文数又是偶数的数,比如: <span style="background:white;">23432  、 <span style="background:white;">66866  等。 <span style="background:white;"> 

[/md]

输入格式

[md]

 两个整数 <span style="font-family:&quot;background:white;"><span style="color:rgba(0, 0, 0, 0.87);">m   <span style="color:rgba(0, 0, 0, 0.87);">和  <span style="font-family:&quot;background:white;"><span style="color:rgba(0, 0, 0, 0.87);">n   <span style="color:rgba(0, 0, 0, 0.87);">用空格隔开(  <span style="font-family:&quot;background:white;"><span style="color:rgba(0, 0, 0, 0.87);">m&lt;=n   <span style="color:rgba(0, 0, 0, 0.87);">,且  <span style="font-family:&quot;background:white;"><span style="color:rgba(0, 0, 0, 0.87);">m   <span style="color:rgba(0, 0, 0, 0.87);">和  <span style="font-family:&quot;background:white;"><span style="color:rgba(0, 0, 0, 0.87);">n   <span style="color:rgba(0, 0, 0, 0.87);">一定都是  <span style="font-family:&quot;background:white;"><span style="color:rgba(0, 0, 0, 0.87);">5  位数)。  <span style="background:white;"> 

[/md]

输出格式

[md]

 第 <span style="background:white;">1  行输出一个整数,代表 <span style="background:white;">m~n  之间的回文偶数有多少个。 <span style="background:white;"> 


 第 <span style="background:white;">2  行输出一个整数,代表 <span style="background:white;">m~n  之间的回文偶数总和是多少。   

[/md]

样例

10000 30000
100
2499700

提示

[md]

[/md]