Compose Functions
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Read in function definitions, then make nested calls with the given input and output the result.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
a(x) = x + 2
b(x) = x * 2
a(b(3))
b(a(3))
Sample output:
8
10
Sample input:_
a(x) = x * 4
b(x) = x - 6
c(x) = x + 7
d(x) = x + 3
e(x) = x - 7
f(x) = x * 1
g(x) = x * 8
h(x) = x + 5
i(x) = x * 5
j(x) = x + 2
k(x) = x - 3
l(x) = x - 1
m(x) = x - 9
n(x) = x - 7
o(x) = x + 4
p(x) = x + 2
q(x) = x + 4
r(x) = x - 5
s(x) = x * 4
t(x) = x + 6
u(x) = x - 2
v(x) = x + 9
w(x) = x * 3
c(n(9))
a(t(q(m(5))))
l(j(a(v(5))))
m(e(4))
m(k(3))
j(k(i(7)))
h(d(7))
t(r(4))
r(m(a(w(5))))
n(q(6))
j(d(2))
t(f(k(2)))
l(m(d(g(7))))
w(p(i(n(3))))
v(w(h(e(4))))
e(b(c(r(4))))
u(p(e(n(7))))
o(a(b(h(3))))
m(i(e(u(1))))
u(q(e(t(2))))
t(m(q(o(2))))
j(m(r(5)))
u(w(f(a(1))))
Sample output:
9
24
57
-12
-9
34
15
5
46
3
7
5
49
-54
15
-7
-7
12
-49
3
7
-7
10
Sample input:_
a(x) = x * 3
b(x) = x + 1
a(a(a(a(a(a(a(b(b(b(b(b(b(1)))))))))))))
a(b(a(b(a(b(a(b(a(b(a(b(a(b(2))))))))))))))
Sample output:
15309
7653
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs | 45 | 0.0371 | 2015/05/08 07:18:30 | 0B / 19B / 22B |
2 | Histocrat | 45 | 0.0372 | 2015/05/15 01:38:49 | 0B / 19B / 22B |
3 | kaki | 46 | 0.0346 | 2015/05/21 03:07:17 | 0B / 19B / 23B |
4 | Histocrat (author) | 47 | 0.0479 | 2015/05/08 03:24:18 | 0B / 19B / 24B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs | 50 | 0.0359 | 2015/05/10 14:58:48 | 0B / 23B / 24B |
2 | tails | 52 | 0.0391 | 2015/05/08 18:56:10 | 0B / 24B / 24B |
3 | teebee | 53 | 0.0372 | 2015/05/09 02:01:47 | 0B / 24B / 27B |
4 | angel | 55 | 0.0339 | 2015/05/21 20:02:15 | 0B / ?B / ?B |
5 | jonathan camacho | 75 | 0.0346 | 2015/05/08 12:22:36 | 0B / 25B / 45B |
6 | BioFALSE | 80 | 0.0333 | 2015/05/15 02:44:33 | 0B / 27B / 50B |
7 | %20 | 95 | 0.0351 | 2015/05/08 12:54:00 | 0B / 34B / 56B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs | 71 | 0.0994 | 2015/05/08 11:29:05 | 0B / 39B / 27B |
2 | Hendrik | 71 | 0.0883 | 2015/05/08 12:20:23 | 0B / 40B / 27B |
3 | rolf | 71 | 0.0874 | 2015/05/10 00:57:25 | 0B / 34B / 33B |
4 | llhuii | 71 | 0.0934 | 2015/05/21 01:02:20 | 0B / ?B / ?B |
5 | hallvabo | 71 | 0.0970 | 2015/05/22 01:31:11 | 0B / 34B / 34B |
6 | xsot | 76 | 0.1230 | 2015/05/16 21:49:08 | 0B / 43B / 29B |
7 | recursive | 78 | 0.1054 | 2015/05/15 05:21:06 | 0B / 49B / 21B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | mitchs | 71 | 0.1705 | 2015/05/15 00:27:07 | 0B / 36B / 29B |
2 | hallvabo | 71 | 0.2671 | 2015/05/22 01:59:48 | 0B / 31B / 37B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | 0mg | 64 | 0.0488 | 2015/05/20 22:04:49 | 0B / 38B / 26B |
2 | FizzyTea | 64 | 0.0449 | 2015/05/21 01:39:50 | 0B / 38B / 25B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | smkt | 213 | 0.0318 | 2016/05/08 04:13:02 | 0B / 108B / 101B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 10 | 0.0394 | 2015/05/09 23:29:55 | 0B / 5B / 5B |
2 | teebee | 10 | 0.0535 | 2015/05/10 17:50:53 | 0B / 4B / 6B |
3 | mitchs | 11 | 0.0407 | 2015/05/08 20:23:04 | 0B / 6B / 3B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 10 | 0.0755 | 2015/05/10 17:51:19 | 0B / 4B / 6B |
2 | mitchs | 11 | 0.0522 | 2015/05/08 20:26:16 | 0B / 6B / 3B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | teebee | 10 | 0.0883 | 2015/05/10 17:53:48 | 0B / 5B / 5B |
2 | mitchs | 11 | 0.0940 | 2015/05/08 20:26:25 | 0B / 6B / 3B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 40 | 0.0838 | 2015/05/09 23:53:37 | 0B / 5B / 35B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Bash | tails | 10 | 10000 |
2 | Zsh | teebee | 10 | 10000 |
3 | Fish | teebee | 10 | 10000 |
4 | Vim | FizzyTea(tails) | 15 | 6666 |
5 | goruby | mitchs | 40 | 2500 |
6 | GolfScript | tails | 40 | 2500 |
7 | Ruby | mitchs | 45 | 2222 |
8 | Perl | mitchs | 50 | 2000 |
9 | JavaScript | 0mg | 64 | 1562 |
10 | Python | mitchs | 71 | 1408 |
11 | Python3 | mitchs | 71 | 1408 |
12 | Lua | Hendrik | 112 | 892 |
13 | C | smkt | 213 | 469 |
14 | R | Vlo (no golf) | 238 | 420 |
return to the top page