Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Long-year/Sidef/long-year.sidef
Normal file
7
Task/Long-year/Sidef/long-year.sidef
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
func is_long_year(year) {
|
||||
Date.parse("#{year}-12-28", "%Y-%m-%d").week == 53
|
||||
}
|
||||
|
||||
say ( "Long years in the 20th century:\n", (1900..^2000).grep(is_long_year))
|
||||
say ("\nLong years in the 21st century:\n", (2000..^2100).grep(is_long_year))
|
||||
say ("\nLong years in the 22nd century:\n", (2100..^2200).grep(is_long_year))
|
||||
Loading…
Add table
Add a link
Reference in a new issue