top1编程
← 返回上一页

P682. 【入门】五位回文偶数

时间限制
1000 ms
内存限制
64 MiB
难度
10
知识点
循环
知识点
东方博宜

Description

 请求出 <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;"> 

Input Format

 两个整数 <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;"> 

Output Format

 第 <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  之间的回文偶数总和是多少。   
10000 30000
100
2499700

Source

简单循环