Solve problem 7 task 1
This commit is contained in:
parent
baeb85af01
commit
90a708c5fc
1 changed files with 3 additions and 5 deletions
|
@ -116,11 +116,9 @@
|
||||||
text←('@[a-zA-Z]*@'⎕R{ns getval ¯1↓1↓⍵.Match})template
|
text←('@[a-zA-Z]*@'⎕R{ns getval ¯1↓1↓⍵.Match})template
|
||||||
∇
|
∇
|
||||||
|
|
||||||
∇ digit←CheckDigit digits
|
|
||||||
⍝ 2020 APL Problem Solving Competition Phase II
|
⍝ 2020 APL Problem Solving Competition Phase II
|
||||||
⍝ Stub function for Problem 7, Tasl 1 - CheckDigit
|
⍝ Problem 7, Tasl 1 - CheckDigit
|
||||||
⍝ Put your code and comments below here
|
CheckDigit←{10|-10|⍵+.×11⍴3 1}
|
||||||
∇
|
|
||||||
|
|
||||||
∇ bits←WriteUPC digits
|
∇ bits←WriteUPC digits
|
||||||
⍝ 2020 APL Problem Solving Competition Phase II
|
⍝ 2020 APL Problem Solving Competition Phase II
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue