LASTDIGIT2 fixed and remixed

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

LASTDIGIT2 fixed and remixed by nn.
See http://golf.shinh.org/p.rb?LASTDIGIT2 for problem description.

Options

exec is denied

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

Sample input:_

34543232321323243242434544533445343432434311112223454323232132324324243454453344534343243431111222345432323213232432424345445334453434324343111122234543232321323243242434544533445343432434311112223454323232132324324243454453344534343243431111222345432323213232432424345445334453434324343111122234543232321323243242434544533445343432434311112223454323232132324324243454453344534343243431111222 22337254775808
6777744348435743587643756438765436574448743756437654736574365764375647563675673466375643765743657647564387578436587643587643576432756437657436574365743675476543765673546764375643875238472837589237574367564378543875643765743687564378564387654387658436587643576327463245267453265874654596743895643876547658746587643756487658437685763856437564376437648763248763847638764584376547657436587368476756487568436584736587436587643875647568476547657465874657465746547654756475587564354375674365645643675 9223376854775808
38758436543765743875437656358764347568437658743658743454354645645543532487548758475847684756897548758457843758437584758478574857438758436587436587436587643875643856783478743658743658764387564387564378658437658743658743687564387564387564765746576475647564756475465746574675647654765476547534587545689475689748574385743765874585743857843765893748643587438957458754376543265874387564384764367584375874758943267632487564357 54545454123
9223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808922337203685477580892233720368547758089223372036854775808 2233720368547758
6777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357 54545454
6777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357 54545454
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876377684745784377578436587643253776847457843775784365876432537768474578437757843658764325432875432875684376587437543756437 44545454
3454323232132324324243454453377684745784377578436587643253776847457843775784365876432537768474578437757843658764325344534343243431111222 453
677774434843574358764375643876543657458756435437567436564564367589478945848578475847548758487548454545 232323453
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876432875432875684376587437543756437 44545454
3454323232132324324243454453344534343243431111222 453
3454323232132324324243454453344534343243431111222 453
6777744348435743587643756438765436574587564354375674365645643675 232323
3875843654376574357545454546777744348435743587643756438765436574587564354375674365645643675 232323
37768474578437757843658764325876377684745784377578436587643253776847457843775784365876432537768474578437757843658764325432875432875684376587437543756437 44545454
3454323232132324324243454453377684745784377578436587643253776847457843775784365876432537768474578437757843658764325344534343243431111222 453

Sample output:

6
5
3
4
5
9
2
2
5
9
5
9
2
2
5
5
9
2
2
5
5
9
2
2
5
5
9
2
2
5
5
9
2
2
5
9
5
5
9
2
2
5
5
9
2
5
5
9
2
2
5
5
9
2

Sample input:_

3141592653 5897932384
6264338327 9502884197
16939937510 582097494
4592307816 4062862089
9862803482 5342117067
9821480865 1328230664
7093844609 5505822317
2535940812 8481117450
2841027019 3852110555
9644622948 9549303819
6442881097 5665933446
1284756482 3378678316
5271201909 1456485669
23460348610 454326648
2133936072 6024914127
3724587006 6063155881
74881520920 9628292540
9171536436 78925903600
1133053054 8820466521
3841469519 4151160943
3057270365 7595919530
9218611738 1932611793
1051185480 7446237996
2749567351 8857527248
9122793818 3011949129
8336733624 4065664308
6021394946 3952247371
90702179860 943702770
5392171762 9317675238
4674818467 669405132000
5681271452 6356082778
5771342757 7896091736
3717872146 8440901224
9534301465 49585371050
7922796892 5892354201
99561121290 219608640
3441815981 3629774771
30996051870 721134999
99983729780 499510597
3173281609 6318595024
45945534690 830264252
2308253344 6850352619
3118817101000 3137838
7528865875 33208381420
6171776691 4730359825
3490428755 4687311595
6286388235 3787593751
9577818577 8053217122
6806613001 9278766111
95909216420 198

Sample output:

1
7
0
6
8
5
9
4
9
2
9
6
9
0
8
6
0
6
4
9
5
8
0
1
8
6
6
0
4
1
4
1
6
5
2
0
1
0
0
1
0
4
0
5
1
5
5
9
1
0

Sample input:_

271828 1828
459045 2353602874
7135 2662
49775 72470
936999 59
5749669 676277240
76 6303
5354 75945
7138 2178525
1664 274274
6639 193200
305 9921817
41359 662904
3572900 334295
26059 5630738
13232 862794
34907 632338
29880 753195
2510 19011
573 834187
93070 215
408914 9934
88416 7509
24476 1460
66 808
22648001 68477
411 85374
23454 4243
710 753907
77 449
9206 955
170276183 86062
61331 384
5830007 5204
49338 265602
9760 6737113200
7093 28
709 127443
74704 72306
9697 72093
1014169 283681902
55151086 57463772
111252 38978
442505695 36967707854
49969967946 864454905987931636
88 92300987931
2773 617821542
49992295 7635
14822082 6989
519366803 3182

Sample output:

6
5
5
5
9
1
6
4
8
6
1
5
1
0
1
4
9
0
0
7
0
6
6
6
6
1
1
4
0
7
6
9
1
1
4
0
1
9
6
7
1
6
4
5
6
2
9
5
2
9

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid350.19822011/04/14 09:33:440B / 15B / 17B
2kaki350.07852011/04/14 18:40:170B / 16B / 16B

Perl _

RankUserSizeTimeDateStatistics
1teebee330.00622011/04/07 05:49:470B / 12B / 20B
2tails330.02122011/04/08 07:31:340B / 12B / 20B

Python _

RankUserSizeTimeDateStatistics
1hirose530.08452011/04/07 05:03:530B / 35B / 16B
2twobit530.07262011/04/07 05:50:410B / 35B / 17B
3hallvabo530.07972011/04/07 05:59:040B / 35B / 16B
4xulapp530.07662011/04/09 06:38:530B / 35B / 16B
5kaki530.07112011/04/14 20:02:030B / 35B / 16B
6leonid530.08012011/04/20 09:11:590B / 35B / 16B
7recursive550.07942011/04/07 23:18:290B / 35B / 18B
8Debanjan580.07742011/04/07 23:16:400B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1xulapp670.13072011/04/06 21:56:373B / 39B / 25B
2o-cn630.92652011/04/22 22:56:250B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1kaki460.27472011/04/14 17:56:000B / 32B / 14B
2dico_leque460.25942011/04/14 19:52:230B / 32B / 14B
3murky-satyr460.26702011/04/14 21:02:490B / 32B / 14B
4youz460.26212011/04/15 16:42:010B / 32B / 14B
5cddddr1110.19382011/04/08 15:49:300B / 55B / 44B

Common LISP _

RankUserSizeTimeDateStatistics
1youz450.18002011/04/06 20:37:420B / 29B / 14B
2kozima450.17892011/04/08 13:46:100B / 29B / 14B
3kaki450.18022011/04/14 19:40:110B / 32B / 13B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr426.00012011/04/14 21:07:220B / 30B / 12B
2youz425.92592011/04/15 16:41:400B / 30B / 12B

Clojure _

RankUserSizeTimeDateStatistics
1kaki545.48682011/04/14 19:36:230B / 36B / 17B
2youz545.48262011/04/15 16:41:530B / 36B / 17B
3murky-satyr655.44832011/04/07 22:01:380B / 42B / 22B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr590.01392011/04/07 19:20:460B / 27B / 30B
2nn590.01592011/04/09 00:46:510B / 30B / 28B
3xulapp600.01412011/04/06 21:07:110B / 30B / 28B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*890.00662011/04/18 03:24:490B / 51B / 37B

J _

RankUserSizeTimeDateStatistics
1pooq440.12942011/04/08 23:37:310B / 17B / 27B

C _

RankUserSizeTimeDateStatistics
1nn940.02432011/04/09 00:44:490B / 50B / 44B
2inaniwa950.00262011/04/10 13:24:140B / 56B / 39B
3inaniwa930.00352011/04/21 11:55:100B / 56B / 37B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1520.30522011/04/17 19:10:310B / 98B / 45B
2m.ukai1820.15342011/04/14 21:41:540B / 104B / 63B

Haskell _

RankUserSizeTimeDateStatistics
1sjoerd_visscher670.03782011/04/11 06:34:470B / 46B / 17B
2notogawa670.03342011/04/11 19:06:410B / 46B / 17B
3kaki670.04502011/04/14 17:51:290B / 46B / 17B
4dico_leque670.03242011/04/14 19:55:090B / 46B / 18B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1470.00292011/04/19 20:24:450B / 98B / 44B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1110.01172011/04/18 02:21:270B / 72B / 38B
2*yuko*1090.04172011/12/03 00:49:560B / 70B / 38B

Maxima _

RankUserSizeTimeDateStatistics
1pooq630.50942011/04/08 23:59:340B / 36B / 26B

AWK _

RankUserSizeTimeDateStatistics
1_340.00342011/04/15 23:45:150B / 13B / 21B
2hemflit340.00342011/04/15 23:45:420B / 13B / 21B

Bash _

RankUserSizeTimeDateStatistics
1narb120.10032011/04/07 21:29:190B / ?B / ?B
2Carlos Gutierrez230.09062011/04/07 08:56:110B / 12B / 10B
3ninjalj250.99162011/04/08 22:51:200B / 10B / 12B

Zsh _

RankUserSizeTimeDateStatistics
1narb120.11832011/04/07 21:29:270B / ?B / ?B
2Carlos Gutierrez230.28792011/04/07 08:56:240B / 12B / 10B

Fish _

RankUserSizeTimeDateStatistics
1narb120.25302011/04/07 21:29:320B / ?B / ?B
2Carlos Gutierrez230.32062011/04/07 08:56:430B / 12B / 10B

dc _

RankUserSizeTimeDateStatistics
1narb150.06932011/04/07 21:37:210B / ?B / ?B
2Carlos Gutierrez160.06732011/04/07 08:53:190B / 9B / 7B
3ninjalj160.09032011/04/08 22:31:470B / 10B / 6B

GolfScript _

RankUserSizeTimeDateStatistics
1leonid140.41882011/04/20 09:21:370B / 6B / 8B

gs2 _

RankUserSizeTimeDateStatistics
1tails90.26642017/06/28 11:25:243B / 4B / 2B
2whio130.25332017/06/27 00:16:232B / 4B / 7B

Vim _

RankUserSizeTimeDateStatistics
1udioica(!)160.07212017/06/17 04:35:382B / 9B / 3B

goruby _

RankUserSizeTimeDateStatistics
1leonid280.23692011/04/14 09:36:120B / 10B / 16B
2kaki280.19832011/04/14 18:41:170B / 10B / 16B
3murky-satyr320.13332011/04/14 19:50:310B / 11B / 19B

Groovy _

RankUserSizeTimeDateStatistics
1nn739.85342011/04/06 19:29:490B / 49B / 23B
2murky-satyr7310.03512011/04/07 21:31:110B / 44B / 28B
3nn(murky-satyr)719.82812011/04/20 22:51:530B / 47B / 22B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr9220.29442011/04/07 19:30:460B / 63B / 25B

Logo _

RankUserSizeTimeDateStatistics
1teebee590.04022011/04/11 07:18:060B / 42B / 10B

Language Ranking_

RankLangUserSizeScore
1gs2tails910000
2Bashnarb127500
3Zshnarb127500
4Fishnarb127500
5GolfScriptleonid146428
6dcnarb156000
7Vimudioica(!)165625
8gorubyleonid283214
9Perlteebee332727
10AWK342647
11Rubyleonid352571
12Arcmurky-satyr422142
13Jpooq442045
14Common LISPyouz452000
15Schemekaki461956
16Pythonhirose531698
17Clojurekaki541666
18JavaScriptmurky-satyr591525
19Logoteebee591525
20Maximapooq631428
21PHPo-cn631428
22Haskellsjoerd_visscher671343
23Groovynn(murky-satyr)711267
24BASIC*yuko*891011
25Scalamurky-satyr92978
26Cinaniwa93967
27Fortran*yuko*109825
28Pascal*yuko*147612
29OCamlksk152592

return top