last non zero

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

Print non-zero numbers just before zero, namely the last non-zero numbers in the sequence.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

537 527 61 983 69 479 339 179 809 82 766 204 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 179 763 79 267 940 466 53 262 0 0 0 0 0 0 0 0 0 0 723 593 150 520 602 434 802 773 407 380 921 0 0 0 0 0 0 0 0 0 0 294 231 504 438 697 446 417 645 559 991 832 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 193 692 62 186 882 336 968 779 941 226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 93 448 57 617 183 0 0 0 0 0 0 0 0 0 0 957 585 604 817 942 246 454 613 672 21 241 242 0 0 0 0 0 0 0 0 0 0 210 949 377 814 166 729 872 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 403 333 306 775 302 369 479 206 0 0 0 0 0 0 0 0 0 0 0 0 484 70 678 849 996 112 216 635 0 0 0 0 0 0 0 0 0 0 0 971 602 824 881 0 0 0 0 0 0 0 269 931 202 318 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Sample output:

204 262 921 832 226 183 242 872 206 635 881 318

Sample input:_

271 8 943 543 888 589 372 303 619 0 0 0 0 0 0 0 0 0 458 823 375 160 857 44 201 377 140 306 0 0 0 0 0 0 0 0 0 0 812 7 400 475 518 48 0 0 0 0 0 0 0 0 0 0 147 312 182 0 0 0 0 0 0 0 0 595 714 318 277 684 453 353 220 0 0 0 0 0 0 0 194 488 841 453 300 200 462 814 565 0 0 0 0 0 0 0 0 0 0 0 0 0 868 930 265 23 97 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 834 398 49 744 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 643 55 877 457 348 975 977 0 0 0 0 0 0 0 0 0 0 0 0

Sample output:

619 306 48 182 220 565 97 744 977

Sample input:_

45 59 580 260 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 835 611 258 434 588 113 0 0 0 0 0 0 0 0 90 581 493 565 124 256 0 0 0 0 0 0 0 0 0 872 983 456 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 813 314 807 107 406 959 0 0 0 0 0 0 0 0 0 0 0 0 314 545 452 72 488 268 588 61 32 850 0 0 0 0 0 0 0 0 0 0 0 0 626 420 815 179 238 991 193 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 969 972 41 178 386 829 328 883 0 0 0 0 0 0 0 0 0 0 0 357 510 891 109 806 536 134 849 558 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 526 320 733 103 441 880 594 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 123 472 548 520 936 489 707 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 937 104 380 928 434 917 219 869 865 0 0 0 0 0 0 0 0 0 0 303 56 302 125 127 612 260 0 0 0 0 0 0 0 0 0 0 0 0 0

Sample output:

260 113 256 456 959 850 193 883 558 594 707 865 260

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat250.03242019/10/30 00:25:330B / 10B / 14B
2mitchs250.03262019/10/30 07:40:290B / 10B / 14B
3rotary-o250.03502019/11/01 23:07:580B / 10B / 14B
4llhuii250.03302019/11/02 20:06:350B / 10B / 14B
5kaki260.05802019/10/27 16:00:130B / 11B / 14B
6olf330.04322019/10/26 22:26:260B / 15B / 14B
7tmtms330.03342019/10/30 23:04:540B / 12B / 19B

Ruby2 _

RankUserSizeTimeDateStatistics
1Histocrat280.15652019/10/30 03:45:290B / 10B / 17B
2mitchs280.15022019/10/30 07:41:060B / 10B / 17B
3rotary-o280.15612019/11/01 23:07:220B / 10B / 17B
4llhuii280.23802019/11/02 20:06:490B / 10B / 17B
5kaki290.14952019/10/27 16:02:280B / 11B / 17B
6letranger300.14832019/10/27 00:01:110B / 12B / 17B
7tmtms330.14552019/10/30 23:04:590B / 12B / 19B

Perl _

RankUserSizeTimeDateStatistics
1mitchs200.04252019/10/30 07:44:080B / 8B / 11B
2tails200.05142019/10/31 14:24:430B / 8B / 11B
3llhuii200.05862019/11/02 19:51:280B / 8B / 11B

Python _

RankUserSizeTimeDateStatistics
1hallvabo530.07052019/10/29 01:41:300B / 29B / 19B

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion520.11362019/10/29 02:20:560B / 31B / 18B
2mitchs (mypetlion)500.11742019/11/04 02:54:590B / 29B / 18B

Scheme _

RankUserSizeTimeDateStatistics
1kaki630.09292019/10/27 20:52:310B / 33B / 27B
2kaki620.09002019/11/02 21:41:200B / 32B / 27B

JavaScript _

RankUserSizeTimeDateStatistics
10mg410.04002019/10/28 17:35:040B / 25B / 15B
2clock440.04122019/10/27 22:38:250B / 26B / 17B
3ZED.CWT450.03822019/10/27 01:23:490B / 24B / 19B
40mg(mitchs.sed)400.03922019/11/03 08:25:330B / 24B / 15B

J _

RankUserSizeTimeDateStatistics
1_200.07592019/10/27 16:52:510B / 6B / 14B
2Bubbler200.05702019/10/29 09:02:200B / 6B / 14B

C _

RankUserSizeTimeDateStatistics
1llhuii570.03162019/11/02 20:47:510B / 27B / 29B
20mg580.03162019/10/28 20:10:430B / 28B / 29B
3rotary-o580.03362019/11/02 14:37:090B / 28B / 29B

Haskell _

RankUserSizeTimeDateStatistics
1henkma620.03302019/10/30 14:05:190B / 35B / 26B
2_630.03712019/10/27 22:34:460B / 37B / 25B
3kaki630.03642019/11/02 21:32:540B / 35B / 28B

AWK _

RankUserSizeTimeDateStatistics
1llhuii250.03132019/11/01 15:27:390B / 16B / 9B
2mitchs250.03132019/11/02 04:26:260B / 16B / 9B
3test250.03132019/11/02 11:31:160B / 16B / 9B
4eban250.03152019/11/02 13:08:180B / 16B / 9B
5olf410.03152019/10/27 00:22:310B / 16B / 25B

sed _

RankUserSizeTimeDateStatistics
1mitchs210.03262019/10/30 07:47:080B / 5B / 15B
2tails210.03642019/10/31 15:01:580B / 6B / 14B
30mg220.03712019/10/28 17:30:000B / 6B / 13B

Bash _

RankUserSizeTimeDateStatistics
1eban260.00432019/11/01 16:24:460B / 12B / 9B
2McBusLuck320.00602019/10/29 04:15:240B / 15B / 14B
3McBusLuck260.00632019/11/05 20:25:060B / 10B / 14B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails430.11162019/10/31 17:10:320B / 17B / 20B
2llhuii430.13922019/11/02 21:35:250B / 19B / 18B
3McBusLuck490.35032019/10/29 04:10:470B / 18B / 22B
4llhuii410.13022019/11/03 02:26:000B / 18B / 17B
5McBusLuck460.32282019/11/07 07:40:320B / 18B / 20B

make _

RankUserSizeTimeDateStatistics
1tails570.03632019/10/28 19:25:340B / 30B / 22B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii250.03192019/11/01 15:27:580B / 16B / 9B
2mitchs250.05982019/11/02 04:26:570B / 16B / 9B
3test300.04572019/11/01 08:33:360B / 18B / 10B

m4 _

RankUserSizeTimeDateStatistics
1tails440.03302019/10/31 16:29:370B / 22B / 21B

R _

RankUserSizeTimeDateStatistics
1clock320.31622019/10/27 00:58:510B / 17B / 15B
2olf340.31532019/10/27 01:09:490B / 20B / 14B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs140.05972019/10/27 00:51:570B / 1B / 12B

gs2 _

RankUserSizeTimeDateStatistics
1tails70.21462019/10/26 22:30:442B / 2B / 3B
2mitchs70.18062019/10/27 00:17:263B / 2B / 2B
3whio70.17672019/11/03 05:25:443B / 3B / 1B
4whio(string)70.18092019/11/03 07:19:371B / 2B / 4B

goruby _

RankUserSizeTimeDateStatistics
1mitchs180.06902019/10/30 07:42:500B / 6B / 10B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o487.59772019/11/02 20:52:240B / 32B / 11B
2clock505.86912019/11/02 20:33:260B / 33B / 15B

Language Ranking_

RankLangUserSizeScore
1gs2tails710000
2GolfScriptmitchs145000
3gorubymitchs183888
4J203500
5Perlmitchs203500
6sedmitchs213333
7RubyHistocrat252800
8AWKllhuii252800
9xgawkllhuii252800
10Basheban262692
11Ruby2Histocrat282500
12Rclock322187
13JavaScript0mg(mitchs.sed)401750
14Bash (builtins)llhuii411707
15m4tails441590
16Scalarotary-o481458
17Python3mitchs (mypetlion)501400
18Pythonhallvabo531320
19maketails571228
20Cllhuii571228
21Haskellhenkma621129
22Schemekaki621129

return to the top page