92 lines
3.7 KiB
APL
92 lines
3.7 KiB
APL
:Namespace Contest2020
|
|
|
|
AboutMe←,⊂'Tell us a bit about yourself'
|
|
⍝ AboutMe,←⊂'' ⍝ copy, uncomment, and edit this line if you need more space
|
|
|
|
Reaction←,⊂'Please share your thoughts about the 2020 competition'
|
|
⍝ Reaction,←⊂'' ⍝ copy, uncomment, and edit this line if you need more space
|
|
|
|
|
|
:Namespace Problems
|
|
(⎕IO ⎕ML ⎕WX)←1 1 3
|
|
|
|
∇ score←dd DiveScore scores
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 1, Task 1 - DiveScore
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ steps←{p}Steps fromTo
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 2, Task 1 - Steps
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ urls←PastTasks url
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 3, Task 1 - PastTasks
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ r←revp dna
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 4, Task 1 - revp
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ r←sset n
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 4, Task 2 - sset
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ r←amounts rr rates
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 5, Task 1 - rr
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ r←cashFlow pv rates
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 5, Task 2 - pv
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ text←templateFile Merge jsonFile
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 6, Task 1 - Merge
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ digit←CheckDigit digits
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 7, Tasl 1 - CheckDigit
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ bits←WriteUPC digits
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 7, Task 2 - WriteUPC
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ digits←ReadUPC bits
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 7, Task 3 - ReadUPC
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ parts←Balance nums
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 8, Task 1 - Balance
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
∇ weights←Weights filename
|
|
⍝ 2020 APL Problem Solving Competition Phase II
|
|
⍝ Stub function for Problem 9, Task 1 - Weights
|
|
⍝ Put your code and comments below here
|
|
∇
|
|
|
|
:EndNamespace
|
|
:EndNamespace
|