Stop five after nonzero

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

Congratulations for solving the warmup challenge "Stop on nonzero". Now you must do the same thing except print the next five terms afterwards also.

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

0
0
0
0
0
0
0
11
0
0
0
3
0
0
142
0

Sample output:

0
0
0
0
0
0
0
11
0
0
0
3

Sample input:_

0
9
0
0
0
0
0
0
0
11
0
0
0
0
123
56
0
0
0
0
0
4

Sample output:

0
9
0
0
0
0

Sample input:_

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
19
3
11
0
0
0
0
146
0
0
0
33
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

Sample output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
19
3
11
0
0

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o290.05112022/05/20 22:39:310B / 10B / 17B
2Sisyphus200.05082022/06/02 11:52:430B / 5B / 15B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o290.20282022/05/20 22:39:490B / 10B / 17B
2ovs340.17962022/05/19 16:50:110B / 19B / 14B

Perl _

RankUserSizeTimeDateStatistics
1Sisyphus (alt)260.04542022/05/24 10:31:220B / 9B / 15B
2Sisyphus270.04652022/05/20 09:55:210B / 8B / 17B
3teebee270.04582022/05/23 00:42:210B / 8B / 17B
4Hydrazer330.04522022/05/20 08:46:290B / 14B / 18B
5_360.06002022/05/20 08:41:460B / 16B / 20B
6Sisyphus250.04582022/06/02 11:16:360B / 12B / 13B

Python _

RankUserSizeTimeDateStatistics
1Sisyphus380.09202022/05/19 16:27:370B / 24B / 11B
2xnor400.09272022/06/02 06:34:540B / 25B / 13B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee380.08442022/05/23 05:04:040B / 24B / 14B
2Sisyphus390.06872022/05/19 16:17:290B / 24B / 15B
3ovs390.06002022/05/19 16:41:300B / 23B / 16B
4Dingledooper400.11182022/05/20 06:16:300B / 23B / 17B
5Irratix410.06112022/05/19 15:00:260B / 25B / 16B

SNOBOL _

RankUserSizeTimeDateStatistics
1teebee500.04632022/05/23 05:34:020B / 27B / 15B

Perl6 _

RankUserSizeTimeDateStatistics
1Fleur441.30652022/05/20 14:23:150B / 27B / 13B
2Fleur331.53792022/06/02 11:07:540B / 20B / 8B

C _

RankUserSizeTimeDateStatistics
1teebee440.04172022/05/24 09:33:260B / 24B / 20B
2tails440.04112022/05/24 12:49:350B / 23B / 21B
3rotary-o440.04072022/05/30 23:45:350B / 24B / 20B
4chocobi510.04162022/05/24 09:16:560B / 28B / 23B

Haskell _

RankUserSizeTimeDateStatistics
1henkma360.04672022/06/01 17:14:290B / ?B / ?B
2Sakisan360.04752022/06/01 19:17:110B / ?B / ?B
3lynn360.04892022/06/02 05:57:070B / 29B / 6B
4xnor470.04662022/06/01 04:38:150B / 33B / 14B

Java _

RankUserSizeTimeDateStatistics
1rotary-o1070.16242022/05/20 23:36:160B / 67B / 36B

Octave _

RankUserSizeTimeDateStatistics
1teebee420.42942022/05/23 06:02:050B / 24B / 18B
2Fleur420.57942022/05/23 09:33:390B / 24B / 18B
3Fleur (teebee)400.43322022/06/02 10:17:490B / 23B / 17B

AWK _

RankUserSizeTimeDateStatistics
1Fleur70.04182022/05/23 19:11:010B / 4B / 3B
2teebee70.04192022/05/24 01:28:250B / 4B / 3B
3Fleur ()100.04262022/06/02 10:24:390B / 4B / 6B

sed _

RankUserSizeTimeDateStatistics
1tails140.04302022/05/19 18:02:000B / 7B / 6B
2eban140.04202022/05/19 18:34:080B / 7B / 7B
3McBusLuck140.04292022/05/23 15:50:180B / 7B / 7B
4%20150.04242022/05/23 01:38:180B / 6B / 5B

jq 1.6 _

RankUserSizeTimeDateStatistics
1teebee240.04992022/05/23 15:52:320B / 6B / 16B

Bash _

RankUserSizeTimeDateStatistics
1McBusLuck200.01712022/05/23 15:49:430B / 10B / 9B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails330.04862022/05/23 16:40:110B / 16B / 12B
2McBusLuck410.04592022/05/23 15:39:290B / 19B / 16B

bc _

RankUserSizeTimeDateStatistics
1teebee240.03622022/05/23 07:28:410B / 10B / 13B
2McBusLuck240.03702022/05/23 15:56:440B / 10B / 13B

dc _

RankUserSizeTimeDateStatistics
1tails170.04422022/05/19 18:17:110B / 10B / 7B
2Fleur180.04662022/05/20 14:25:040B / 8B / 10B

xgawk _

RankUserSizeTimeDateStatistics
1Fleur90.04532022/05/24 09:44:210B / 6B / 3B
2Fleur ()90.04492022/06/01 17:08:090B / 5B / 4B
3teebee100.04332022/05/24 02:02:040B / 4B / 6B

Whitespace _

RankUserSizeTimeDateStatistics
1rotary-o800.05032022/05/21 09:36:560B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1lynn90.05972022/06/10 21:46:290B / 4B / 5B

gs2 _

RankUserSizeTimeDateStatistics
1tails90.28562022/05/19 18:33:171B / 2B / 6B
2whio90.20902022/05/21 02:40:181B / 3B / 5B

Nibbles _

RankUserSizeTimeDateStatistics
1tails60.05512022/05/19 18:38:174B / 2B / 0B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik150.04612022/05/19 16:55:280B / 10B / 5B
2Hendrik130.04802022/06/10 21:55:120B / 8B / 5B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o506.00332022/05/20 23:25:060B / 34B / 12B

Logo _

RankUserSizeTimeDateStatistics
1teebee450.04692022/05/24 02:52:260B / 30B / 9B

Language Ranking_

RankLangUserSizeScore
1Nibblestails610000
2AWKFleur78571
3gs2tails96666
4xgawkFleur96666
5GolfScriptlynn96666
6BurlesqueHendrik134615
7sedtails144285
8dctails173529
9BashMcBusLuck203000
10RubySisyphus203000
11bcteebee242500
12jq 1.6teebee242500
13PerlSisyphus252400
14Ruby2rotary-o292068
15Bash (builtins)tails331818
16Perl6Fleur331818
17Haskellhenkma361666
18PythonSisyphus381578
19JavaScriptteebee381578
20OctaveFleur (teebee)401500
21Cteebee441363
22Logoteebee451333
23Scalarotary-o501200
24SNOBOLteebee501200
25Whitespacerotary-o80750
26Javarotary-o107560

return to the top page