统计闰年
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.
c++240824班(11月测试)
- Status
- Done
- Rule
- OI
- Problem
- 3
- Start at
- 2024-12-1 10:34
- End at
- 2024-12-1 11:14
- Duration
- 0.7 hour(s)
- Host
- Partic.
- 6