Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
14
Task/Man-or-boy-test/Ursalang/man-or-boy-test.ursa
Normal file
14
Task/Man-or-boy-test/Ursalang/man-or-boy-test.ursa
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
let a = fn(k, x1, x2, x3, x4, x5) {
|
||||
if k <= 0 {
|
||||
x4() + x5()
|
||||
} else {
|
||||
var m = k
|
||||
let b = fn() {
|
||||
m := m - 1
|
||||
a(m, b, x1, x2, x3, x4)
|
||||
}
|
||||
b()
|
||||
}
|
||||
}
|
||||
|
||||
print(a(10, fn () {1}, fn () {-1}, fn () {-1}, fn () {1}, fn () {0}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue