Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Five-weekends/Zkl/five-weekends-1.zkl
Normal file
4
Task/Five-weekends/Zkl/five-weekends-1.zkl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var [const] D=Time.Date, r=L();
|
||||
foreach y,m in ([1900..2100],[1..12]){
|
||||
if (D.daysInMonth(y,m)==31 and 5==D.weekDay(y,m,1)) r.append(String(y,"-",m))
|
||||
}
|
||||
3
Task/Five-weekends/Zkl/five-weekends-2.zkl
Normal file
3
Task/Five-weekends/Zkl/five-weekends-2.zkl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
r:=[[(y,m); [1900..2100];
|
||||
[1..12],{D.daysInMonth(y,m)==31 and 5==D.weekDay(y,m,1)};
|
||||
{String(y,"-",m)}]];
|
||||
7
Task/Five-weekends/Zkl/five-weekends-3.zkl
Normal file
7
Task/Five-weekends/Zkl/five-weekends-3.zkl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
var [const] D=Time.Date, r=L();
|
||||
foreach y in ([1900..2100]){ yes:=True;
|
||||
foreach m in ([1..12]){
|
||||
if (D.daysInMonth(y,m)==31 and 5==D.weekDay(y,m,1)) { yes=False; break; }
|
||||
}
|
||||
if (yes) r.append(y)
|
||||
}
|
||||
5
Task/Five-weekends/Zkl/five-weekends-4.zkl
Normal file
5
Task/Five-weekends/Zkl/five-weekends-4.zkl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var yes, r=[[(y,m);
|
||||
[1900..2100];
|
||||
[1..12],{if(m==1)yes=True; if(D.daysInMonth(y,m)==31 and 5==D.weekDay(y,m,1)) yes=False; True},
|
||||
{if (m==12) yes else False};
|
||||
{y}]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue