Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Sum-of-squares/PostScript/sum-of-squares-1.ps
Normal file
14
Task/Sum-of-squares/PostScript/sum-of-squares-1.ps
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/sqrsum{
|
||||
/x exch def
|
||||
/sum 0 def
|
||||
/i 0 def
|
||||
x length 0 eq
|
||||
{}
|
||||
{
|
||||
x length{
|
||||
/sum sum x i get 2 exp add def
|
||||
/i i 1 add def
|
||||
}repeat
|
||||
}ifelse
|
||||
sum ==
|
||||
}def
|
||||
1
Task/Sum-of-squares/PostScript/sum-of-squares-2.ps
Normal file
1
Task/Sum-of-squares/PostScript/sum-of-squares-2.ps
Normal file
|
|
@ -0,0 +1 @@
|
|||
[3 1 4 1 5 9] 0 {dup * +} fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue