Type: Default 1000ms 256MiB

统计闰年

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.

Description

输入两个年份x和y,统计并输出公元x年到公元y年之间的所有闰年数(包括x年和y年),1≤x≤y≤3000。

Format

Input

一行两个正整数,分别表示x和y,之间用一个空格隔开。

Output

一行一个正整数,表示公元x年到公元y年之间的所有闰年数。

Samples

2000 2004
2

Limitation

1s, 64MB for each test case.

函数

Not Claimed
Status
Done
Problem
12
Open Since
2024-11-10 0:00
Deadline
2024-12-7 23:59
Extension
24 hour(s)