do a bunch of stuff to a number
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
First, run the number through the Collatz conjecture. Keep count of how many steps it takes for the number to reach 1.
Second, convert the number of steps to binary.
Third, invert the binary, e.g. 101 becomes 010.
Fourth, convert the inverted binary back to a decimal and print it.
Options
exec is denied
rejudge feature is enabled
now post-mortem time, all source codes will be revealed
Sample input:_
65
2
16
76
12
38
14
88
30
39
Sample output:
4
0
3
9
6
10
14
14
13
29
Sample input:_
84
38
32
83
96
70
43
72
77
51
Sample output:
6
10
2
17
3
1
2
9
9
7
Sample input:_
45
66
60
18
15
40
5
25
90
8
Sample output:
15
4
12
11
14
7
2
8
14
0
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 64 | 0.0576 | 2021/09/30 13:14:37 | 0B / 24B / 40B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Dingledooper | 65 | 0.0819 | 2021/10/01 13:50:52 | 0B / 37B / 28B |
2 | emplv | 65 | 0.0598 | 2021/10/03 08:24:49 | 0B / 37B / 28B |
3 | Irratix | 68 | 0.0583 | 2021/10/03 10:12:06 | 0B / 38B / 30B |
4 | panorrrama | 99 | 0.0684 | 2021/10/14 06:53:06 | 0B / 51B / 46B |
5 | KrausRaus | 117 | 0.0590 | 2021/10/01 10:42:02 | 0B / 65B / 51B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hako | 18 | 0.4845 | 2021/10/06 19:34:47 | 10B / 5B / 3B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 88 | 0.0404 | 2021/10/01 10:46:54 | 0B / 43B / 45B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | lynn | 89 | 0.0522 | 2021/10/01 00:31:13 | 0B / 52B / 30B |
2 | rak1507 | 100 | 0.0514 | 2021/10/01 20:30:50 | 0B / 57B / 31B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | Fleur | 54 | 0.0414 | 2021/10/04 11:26:22 | 0B / 25B / 29B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 71 | 0.4573 | 2021/09/30 15:48:51 | 0B / 29B / 33B |
2 | McBusLuck | 90 | 0.0994 | 2021/09/30 16:02:30 | 0B / 35B / 48B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 21 | 0.4820 | 2021/09/30 12:57:00 | 7B / 10B / 4B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | Jelly | hako | 18 | 10000 |
2 | gs2 | tails | 21 | 8571 |
3 | AWK | Fleur | 54 | 3333 |
4 | Ruby | rotary-o | 54 | 3333 |
5 | Burlesque | Hendrik | 55 | 3272 |
6 | Ruby2 | rotary-o | 61 | 2950 |
7 | Perl | tails | 64 | 2812 |
8 | JavaScript | Dingledooper | 65 | 2769 |
9 | Bash (builtins) | tails | 71 | 2535 |
10 | Python | Dingledooper | 72 | 2500 |
11 | Scala | rotary-o | 75 | 2400 |
12 | C | tails | 88 | 2045 |
13 | Haskell | lynn | 89 | 2022 |
14 | Java | rotary-o | 146 | 1232 |
return to the top page