Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -32,6 +32,10 @@ INT dim = 5;
|
|||
ELSE#
|
||||
[,]INT result = zig zag(dim);
|
||||
FOR i TO dim DO
|
||||
print((result[i,], new line))
|
||||
print((IF i = 1 THEN "((" ELSE " (" FI));
|
||||
FOR j TO dim DO
|
||||
print(( whole( result[i,j], -3 ), IF j /= dim THEN "," ELSE "" FI ))
|
||||
OD;
|
||||
print((IF i = dim THEN "))" ELSE ")," FI, new line))
|
||||
OD
|
||||
#FI#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import "/fmt" for Conv, Fmt
|
||||
import "./fmt" for Conv, Fmt
|
||||
|
||||
var zigzag = Fn.new { |n|
|
||||
var r = List.filled(n*n, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue