E. 【深基7.例3】闰年展示

    Type: RemoteJudge 1000ms 256MiB

【深基7.例3】闰年展示

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

输入 x,yx,y,输出 [x,y][x,y] 区间中闰年个数,并在下一行输出所有闰年年份数字,使用空格隔开。

输入格式

输入两个正整数 x,yx,y,以空格隔开。

输出格式

第一行输出一个正整数,表示 [x,y][x,y] 区间中闰年个数。

第二行输出若干个正整数,按照年份单调递增的顺序输出所有闰年年份数字。

1989 2001
3
1992 1996 2000

提示

数据保证,1582x<y30001582\le x < y \le 3000

测试赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2025-8-19 17:30
End at
2025-8-19 19:30
Duration
2 hour(s)
Host
Partic.
1