Skip to content

GoncharovMain/LeapYears

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

// [1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005] => 1
// [1996,                   2000                    2004      ] => 3
// [      1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005] 2005 - 1997 => (int) (8 / 4) => 2
// [            1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005] 2005 - 1998 => (int) (7 / 4) => 1 + 1
// [                  1999, 2000, 2001, 2002, 2003, 2004, 2005] 2005 - 1999 => (int) (6 / 4) => 1 + 1
// [                        2000, 2001, 2002, 2003, 2004, 2005] 2005 - 2000 => (int) (5 / 4) => 1 + 1
// [                              2001, 2002, 2003, 2004, 2005] 2005 - 2001 => (int) (4 / 4) => 1 + 1

// [2001, 2005] => 2 => 1 => False
// [2001, 2002, 2003, 2004, 2005]
// [                  2004      ]

// [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
// [2000                    2004                    2008      ]

// [2000, 2001, 2002, 2003, 2004, 2005                        ] => [2000, 2005] => 2 -> 6/4 -> 1.5 -> 1 + true & false ? 1 : 0
// [      2001, 2002, 2003, 2004, 2005, 2006                  ] => [2001, 2006] => 1 -> 6/4 -> 1.5 -> 1 + false & false ? 1 : 0
// [            2002, 2003, 2004, 2005, 2006, 2007            ] => [2002, 2007] => 1 -> 6/4 -> 1.5 -> 1 + false & false ? 1 : 0
// [                  2003, 2004, 2005, 2006, 2007, 2008      ] => [2003, 2008] => 2 -> 6/4 -> 1.5 -> 1 + false & true ? 1 : 0
// [                        2004, 2005, 2006, 2007, 2008, 2009] => [2004, 2009] => 2 -> 6/4 -> 1.5 -> 1 + true & false ? 1 : 0

// [2000, 2001, 2002, 2003, 2004                              ] => [2000, 2004] => 2 -> 5/4 -> 1.25 -> 1 + true & true ? 1 : 0
// [      2001, 2002, 2003, 2004, 2005                        ] => [2001, 2005] => 1 -> 5/4 -> 1.25 -> 1 + false & false ? 1 : 0
// [            2002, 2003, 2004, 2005, 2006                  ] => [2002, 2006] => 1 -> 5/4 -> 1.25 -> 1 + false & false ? 1 : 0
// [                  2003, 2004, 2005, 2006, 2007            ] => [2003, 2007] => 1 -> 5/4 -> 1.25 -> 1 + false & false ? 1 : 0
// [                        2004, 2005, 2006, 2007, 2008      ] => [2004, 2008] => 2 -> 5/4 -> 1.25 -> 1 + true & true ? 1 : 0
// [                              2005, 2006, 2007, 2008, 2009] => [2005, 2009] => 1 -> 5/4 -> 1.25 -> 1 + false & false ? 1 : 0

// [2000, 2001, 2002                                          ] => [2000, 2002] => 1 -> 3/4 -> 0.75 -> 1 + true & false ? 1: 0
// [      2001, 2002, 2003                                    ] => [2001, 2003] => 0 -> 3/4 -> 0.75 -> 1 + false & false ? 1: 0
// [            2002, 2003, 2004                              ] => [2002, 2004] => 1 -> 3/4 -> 0.75 -> 1 + false & true ? 1: 0
// [                  2003, 2004, 2005                        ] => [2003, 2005] => 1 -> 3/4 -> 0.75 -> 1 + false & false ? 1: 0
// [                        2004, 2005, 2006                  ] => [2004, 2006] => 1 -> 3/4 -> 0.75 -> 1 + true & false ? 1: 0
// [                              2005, 2006, 2007            ] => [2005, 2007] => 0 -> 3/4 -> 0.75 -> 1 + true & false ? 1: 0

// [2000, 2001                                                ] => [2000, 2001] => 1 -> 2/4 -> 0.5 -> 1 + false & false ? 1: 0
// [      2001, 2002                                          ] => [2001, 2002] => 0 -> 2/4 -> 0.5 -> 1 + true & false ? 1: 0
// [            2002, 2003                                    ] => [2002, 2003] => 0 -> 2/4 -> 0.5 -> 1 + false & true ? 1: 0
// [                  2003, 2004                              ] => [2003, 2004] => 1 -> 2/4 -> 0.5 -> 1 + false & true ? 1: 0
// [                        2004, 2005                        ] => [2004, 2005] => 1 -> 2/4 -> 0.5 -> 1 + true & false ? 1: 0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages