mysterious binary sequence

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

For a given number n, first convert it to binary.

Then repeat the substitution '01' -> '100' until you reach a fixpoint. How many times did you make this substution?

For example, 11 is '1011'
Then we repeat '01' -> '100':
'1011' -> '11001' -> '110100' -> '1110000' -> fixpoint
So f(11) is 3

Print f(0) through f(99).

Options

exec is denied

rejudge feature is enabled

22:15:25 before deadline (07/15 10:36:45 JST), all source codes will be revealed after the deadline

Sample input:_

*NOTHING*

Sample output:

0
0
0
0
0
1
0
0
0
2
1
3
0
1
0
0
0
3
2
5
1
3
3
6
0
2
1
3
0
1
0
0
0
4
3
7
2
5
5
10
1
4
3
7
3
6
6
11
0
3
2
5
1
3
3
6
0
2
1
3
0
1
0
0
0
5
4
9
3
7
7
14
2
6
5
11
5
10
10
19
1
5
4
9
3
7
7
14
3
6
6
11
6
11
11
20
0
4
3
7

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o540.02462026/07/04 11:59:450B / 27B / 26B
2Natte570.02282026/07/01 16:00:110B / 30B / 25B

Ruby2 _

RankUserSizeTimeDateStatistics
1Sisyphus510.06362026/07/03 12:01:000B / 28B / 23B
2rotary-o510.06182026/07/04 11:46:460B / 28B / 22B

Perl _

RankUserSizeTimeDateStatistics
1tails540.01532026/07/01 11:11:460B / 33B / 19B
2teebee540.01642026/07/02 07:37:240B / 36B / 15B

Python _

RankUserSizeTimeDateStatistics
1helloperson (gpt)810.10992026/07/02 13:49:000B / 49B / 28B
2Mukundan314840.11312026/07/01 16:00:470B / 51B / 29B
3helloperson840.11122026/07/01 18:10:060B / 49B / 33B
4hallvabo840.11122026/07/02 03:57:300B / 51B / 29B
5fuzzylojik840.11072026/07/02 04:29:040B / 51B / 29B
6biz870.03042026/07/01 10:48:220B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1biz860.04552026/07/02 06:34:240B / ?B / ?B
2Sisyphus870.04852026/07/01 15:03:360B / 54B / 26B
3helloperson870.04832026/07/01 15:04:400B / ?B / ?B
4Mukundan314870.13032026/07/01 16:00:260B / 51B / 33B
5hallvabo870.13172026/07/02 03:54:220B / 51B / 33B
6fuzzylojik870.12762026/07/02 04:28:050B / 51B / 33B
7AlephSquirrel870.04492026/07/04 03:26:530B / 54B / 26B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee810.02402026/07/03 15:36:270B / 47B / 34B
2KrausRaus930.02302026/07/03 12:51:080B / 57B / 36B

iogii _

RankUserSizeTimeDateStatistics
1Natte210.02672026/07/01 16:30:260B / 15B / 6B
2#c0ffee230.01652026/07/01 13:56:130B / 12B / 11B

C _

RankUserSizeTimeDateStatistics
1rotary-o1310.01492026/07/05 10:07:120B / 64B / 65B
2chocobi2040.01422026/07/04 21:14:390B / 109B / 94B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1250.10612026/07/04 17:01:090B / 77B / 45B

C# _

RankUserSizeTimeDateStatistics
1rotary-o1550.04742026/07/04 17:02:080B / 103B / 46B

sed _

RankUserSizeTimeDateStatistics
1tails1410.02172026/07/09 17:07:450B / 55B / 72B

Nibbles _

RankUserSizeTimeDateStatistics
1whio150.02332026/07/14 03:50:458B / 6B / 1B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o912.12622026/07/04 12:05:160B / 58B / 27B

Language Ranking_

RankLangUserSizeScore
1Nibbleswhio1510000
2iogiiNatte217142
3Ruby2Sisyphus512941
4Perltails542777
5Rubyrotary-o542777
6Pythonhelloperson (gpt)811851
7JavaScriptteebee811851
8Python3biz861744
9Scalarotary-o911648
10Javarotary-o1251200
11Crotary-o1311145
12sedtails1411063
13C#rotary-o155967

return to the top page