Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfoad committed Dec 3, 2018
1 parent 743e1bd commit 0fc18bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions p1.dyalog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
p¨⎕NGET'p1.txt'1
+/p part 1
q+\1E6p
q1(qq)q part 2
q+\2E5p
q/(qq)q part 2
2 changes: 1 addition & 1 deletion p2.dyalog
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
p⎕NGET'p2.txt'1
×/+/2 3.{}¨p part 1
{25=¨},.{/=}p part 2
{/25=¨},.{/=}p part 2
5 changes: 2 additions & 3 deletions p3.dyalog
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
p¨¨'\d+'⎕S'&'¨⎕NGET'p3.txt'1
g1000 10000 grid
{(a b c d e) g[(c b)+e d]+1}¨p
g1000 10000 {(a b c d e) g[b c+¨d e]+1}¨p grid
+/,1<g part 1
⊃⊃p/{(a b c d e) /,1=g[(c b)+e d]}¨p part 2
⊃⊃p/{(a b c d e) /,1=g[b c+¨d e]}¨p part 2

0 comments on commit 0fc18bb

Please sign in to comment.