Power Tree
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
Print Knuth's power tree (http://oeis.org/A122352), or an addition chain from the tree.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
t100
Sample output:
1 2 2 3 3 5 4 6 5 10 6 10 7 10 8 16 9 14 10 14 11 13 12 15 13 18 14 28 15 28 16 17 17 21 18 36 19 26 20 40 21 40 22 30 23 42 24 48 25 48 26 52 27 44 28 38 29 31 30 56 31 42 32 64 33 66 34 46 35 57 36 37 37 50 38 76 39 76 40 41 41 43 42 80 43 84 44 47 45 70 46 62 47 57 48 49 49 51 50
Sample input:_
c100
Sample output:
1 2 3 5 10 15 25 50 100
Sample input:_
c31337
Sample output:
1 2 3 5 10 15 30 60 120 121 241 482 964 1928 3856 3977 7833 15666 31332 31337
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | hallvabo | 188 | 2.3385 | 2011/09/22 23:51:07 | 103B / 57B / 28B |
2 | boothby | 261 | 1.0234 | 2011/09/11 05:46:30 | 14B / 125B / 84B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 171 | 2.9673 | 2011/09/18 21:09:18 | 0B / 76B / 89B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | I., S. | 130 | 2.4435 | 2011/09/12 12:26:07 | 0B / 37B / 87B |
2 | pooq | 203 | 0.0975 | 2011/09/10 12:35:17 | 0B / 124B / 51B |
3 | I., S. | 112 | 2.4401 | 2011/10/02 00:28:07 | 0B / 35B / 72B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | nn | 210 | 0.0528 | 2011/09/19 14:54:29 | 0B / 90B / 118B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | pooq | 410 | 0.0317 | 2019/09/27 20:07:20 | 0B / ?B / ?B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | J | I., S. | 112 | 10000 |
2 | JavaScript | nn | 171 | 6549 |
3 | Python | hallvabo | 188 | 5957 |
4 | C | nn | 210 | 5333 |
5 | jq | pooq | 410 | 2731 |
return to the top page