题目描述
It is given to you that on 1st January 2001 it was monday. Let's call a year as Geeky if the 1st January of that year happens to be on Sunday. You will be given two years 'a' and 'b'. The task is to find the no. of Geeky years between those two years (including 'a' and 'b' as well)
Example 1:
Input: a = 2001, b = 2013
Output: 2
Example 2:
Input: a = 2020, b = 2024
Output: 1
Your Task:
You don't need to read or print anything. Your task is to complete the function Count() which takes a and b as input parameter and returns total no. of Geeky years between a to b(inclusive).
Expected Time Complexity: O(n^{2})
Expected Space Complexity: O(1)
Constraints:
1000 <= a < = b <= 3000
输入格式
见题面
输出格式
见题面
样例输入
a = 2001, b = 2013
样例输出
2