Turn a 1d array into a 5d array

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

Turn a 1d array into a 5d array, it must be as close to square as possible

Options

rejudge feature is enabled

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

Sample input:_

12345

Sample output:

d1: 1
d2: 2
d3: 3
d4: 4
d5: 5

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1tails240.01422016/06/07 17:28:530B / 8B / 14B
2%20260.01752016/06/06 03:46:110B / 11B / 13B
3xsot260.01912016/06/06 08:01:210B / 11B / 13B
4kaki280.01512016/07/03 01:50:220B / 13B / 14B
5olf300.01672016/06/06 01:01:180B / 12B / 17B
6gmk310.01712016/07/03 07:49:530B / 17B / 13B
7Klemmbrett350.00022016/06/23 18:08:200B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1%20260.07712016/06/06 03:46:180B / 11B / 13B
2xsot260.07252016/06/06 08:01:320B / 11B / 13B
3kaki280.07502016/07/03 01:51:010B / 13B / 14B

Perl _

RankUserSizeTimeDateStatistics
1%20230.01462016/06/05 13:58:430B / 11B / 9B
2yuki230.00032016/06/06 10:38:360B / 11B / 9B
3Hem230.05592016/06/07 12:29:540B / 11B / 9B
4llhuii230.00032016/06/25 20:03:480B / 11B / 9B
5teebee230.02572016/06/26 07:28:480B / 11B / 9B
6whio230.00022016/06/27 23:25:270B / 11B / 9B
7ludo230.00022016/07/03 02:22:020B / 11B / 9B

Python _

RankUserSizeTimeDateStatistics
1Hendrik310.02652016/06/07 04:41:280B / 20B / 9B
2mitchs310.02672016/06/07 05:12:090B / 20B / 9B
3xsot310.03102016/06/07 08:17:150B / 20B / 9B
4llhuii310.03662016/06/25 20:23:180B / 20B / 9B
5Someone400.02762016/06/23 04:44:230B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs330.08592016/06/07 05:14:510B / 20B / 11B
2xsot330.06702016/06/07 08:17:380B / 20B / 11B
3llhuii330.05312016/06/25 20:24:140B / 20B / 11B

PHP _

RankUserSizeTimeDateStatistics
1%20260.03132016/06/17 23:23:370B / 7B / 17B
2teebee260.02162016/06/25 03:26:470B / 7B / 17B
3Klemmbrett290.01882016/06/23 17:24:100B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1kaki350.02462016/06/18 01:49:540B / 18B / 13B

Io _

RankUserSizeTimeDateStatistics
1pooq320.12212016/07/02 12:10:480B / ?B / ?B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea330.08352016/06/17 03:38:140B / 15B / 18B
2teebee330.06632016/06/20 07:26:310B / 15B / 18B
3Jakzo330.01302016/06/24 21:32:530B / 15B / 18B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik320.02802016/06/08 16:12:310B / 16B / 14B
2teebee320.00332016/06/25 03:30:120B / 16B / 14B

PARI/GP _

RankUserSizeTimeDateStatistics
1Hendrik300.00582016/06/10 17:33:420B / 13B / 15B
2teebee300.01252016/06/20 07:22:320B / 15B / 13B

BASIC _

RankUserSizeTimeDateStatistics
1pooq290.06872016/07/02 18:11:440B / 15B / 11B

Perl6 _

RankUserSizeTimeDateStatistics
1tanon210.68402016/06/28 22:23:460B / 9B / 9B
2ludo210.93542016/07/03 10:36:440B / 9B / 9B

J _

RankUserSizeTimeDateStatistics
1pooq240.03482016/07/02 13:09:140B / 6B / 17B

K _

RankUserSizeTimeDateStatistics
1teebee200.00322016/06/25 05:52:270B / 7B / 11B

C _

RankUserSizeTimeDateStatistics
1mitchs390.00302016/06/06 02:45:460B / 17B / 20B
2%20390.00312016/06/06 03:44:370B / 17B / 20B
3teebee390.00352016/06/06 04:53:210B / 17B / 20B
4xsot390.00312016/06/06 07:59:520B / 17B / 20B
5tails390.00352016/06/06 08:59:420B / 17B / 20B
6llhuii390.00412016/06/25 20:05:330B / 17B / 20B
7lpha390.00282016/07/02 13:58:010B / 17B / 20B

Haskell _

RankUserSizeTimeDateStatistics
1henkma410.01082016/06/06 19:52:010B / ?B / ?B
2Ørjan420.01102016/06/06 12:58:440B / 17B / 22B
3kaki420.01122016/06/27 01:26:540B / 19B / 20B
4nagibator2005470.01852016/06/06 05:31:470B / ?B / ?B
5yuki470.01182016/06/06 10:26:250B / 27B / 18B
6yuki410.01582016/07/04 16:43:170B / 17B / 22B

ObjC _

RankUserSizeTimeDateStatistics
1%20440.00022016/06/06 02:10:100B / 21B / 22B

Java _

RankUserSizeTimeDateStatistics
1dc630.08932016/06/06 00:44:110B / 34B / 26B
2teebee630.09502016/06/06 04:36:230B / 34B / 26B
3Klemmbrett630.06082016/06/06 20:14:590B / ?B / ?B

C# _

RankUserSizeTimeDateStatistics
1Hendrik840.03562016/07/01 20:39:200B / 53B / 19B
2teebee840.04642016/07/01 21:05:170B / 53B / 19B
3ludo840.05202016/07/03 10:23:040B / 53B / 19B
4%20860.04432016/07/01 18:40:420B / 53B / 28B
5chocobi860.04342016/07/02 00:54:510B / 53B / 28B

Maxima _

RankUserSizeTimeDateStatistics
1pooq380.14822016/07/03 08:41:521B / 18B / 17B

Octave _

RankUserSizeTimeDateStatistics
1pooq270.56772016/06/15 21:40:350B / 14B / 12B
2Hendrik270.19832016/06/16 02:07:220B / 14B / 12B
3teebee270.17102016/06/20 06:44:000B / 15B / 12B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee310.10232016/07/02 01:28:180B / 16B / 14B
2chocobi570.09022016/07/02 01:16:250B / 32B / 22B

AWK _

RankUserSizeTimeDateStatistics
1Hendrik190.01142016/06/06 05:41:550B / 6B / 12B
2mitchs190.01362016/06/06 05:53:360B / 7B / 11B
3teebee190.01342016/06/07 07:42:050B / 6B / 12B
4llhuii190.01352016/06/25 20:17:070B / 6B / 12B
5ninjalj190.01382016/07/01 03:08:490B / 6B / 12B

sed _

RankUserSizeTimeDateStatistics
1mitchs130.01052016/06/05 12:44:500B / 4B / 8B
2%20130.01052016/06/05 13:04:040B / 7B / 5B
3Hendrik130.01432016/06/05 17:10:580B / 4B / 8B
4kimiyuki130.01052016/06/05 17:59:280B / 4B / 8B
5xsot130.01062016/06/05 19:53:210B / 4B / 8B
6kaki130.01432016/06/12 03:55:520B / 4B / 8B
7teebee130.01052016/06/25 03:27:560B / 4B / 8B
8llhuii130.01052016/06/25 20:01:190B / 4B / 8B
9ninjalj130.01332016/07/01 03:06:350B / 4B / 8B
10lpha130.01382016/07/02 13:50:160B / 4B / 8B

Bash _

RankUserSizeTimeDateStatistics
1%20190.00182016/06/06 03:52:450B / 7B / 10B
2Hendrik190.01222016/06/06 05:25:240B / 7B / 10B
3xsot190.01232016/06/06 08:03:310B / 7B / 10B
4llhuii190.00592016/06/25 20:08:190B / 7B / 10B
5kaki190.01202016/06/27 00:57:220B / 7B / 10B
6ninjalj190.00702016/07/01 03:10:510B / 7B / 10B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1%20190.01262016/06/06 03:52:480B / 7B / 10B
2teebee190.01202016/06/06 04:44:210B / 7B / 10B
3llhuii190.01212016/06/25 20:08:060B / 7B / 10B
4kaki190.01202016/06/27 00:56:520B / 7B / 10B
5ninjalj190.00722016/07/01 03:10:590B / 7B / 10B

Zsh _

RankUserSizeTimeDateStatistics
1Hendrik190.01232016/06/06 02:45:470B / 7B / 10B
2%20190.01252016/06/06 03:52:540B / 7B / 10B
3llhuii190.03942016/06/25 20:08:330B / 7B / 10B
4kaki190.00892016/06/27 00:57:380B / 7B / 10B
5ninjalj190.02442016/07/01 03:11:190B / 7B / 10B

Fish _

RankUserSizeTimeDateStatistics
1%20190.09002016/06/06 03:52:580B / 7B / 10B
2llhuii190.10062016/06/25 20:08:270B / 7B / 10B
3kaki190.02082016/06/27 00:57:420B / 7B / 10B
4ninjalj190.03982016/07/01 03:11:100B / 7B / 10B

make _

RankUserSizeTimeDateStatistics
1tails260.01322016/06/08 00:34:300B / 10B / 13B

wake _

RankUserSizeTimeDateStatistics
1teebee260.01892016/07/01 21:19:410B / 5B / 19B
2%20280.01542016/06/05 20:10:050B / 8B / 18B

bc _

RankUserSizeTimeDateStatistics
1ludo320.01082016/07/03 11:10:250B / 13B / 17B

dc _

RankUserSizeTimeDateStatistics
1tails230.00462016/06/06 01:05:210B / 8B / 13B
2ninjalj230.01162016/07/02 05:28:350B / 15B / 7B
3tails (ninjalj)220.01552016/07/15 16:02:220B / 15B / 6B

xgawk _

RankUserSizeTimeDateStatistics
1Hendrik190.01862016/06/06 05:49:280B / 6B / 12B
2llhuii190.01402016/06/25 20:17:140B / 6B / 12B
3ninjalj190.01382016/07/01 03:08:380B / 6B / 12B

R _

RankUserSizeTimeDateStatistics
1ludo350.27602016/07/03 11:11:250B / 20B / 14B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)260.02622016/06/05 20:53:543B / 1B / 21B
2kimiyuki310.01082016/06/05 18:16:033B / 1B / 25B
3mitchs590.01072016/06/05 20:49:330B / 0B / 59B
4angel800.01062016/06/25 00:55:080B / ?B / ?B
5yuki1120.01062016/06/06 14:26:060B / 0B / 112B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u860.01282016/06/08 01:22:320B / 0B / 0B
2%20870.03052016/06/06 14:43:420B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1%20220.01482016/06/25 22:31:240B / 3B / 18B
2kaki220.01452016/06/27 00:39:250B / 4B / 17B
3ninjalj220.01462016/07/02 03:16:500B / 4B / 17B

Befunge-98 _

RankUserSizeTimeDateStatistics
1ninjalj200.01722016/07/02 03:29:390B / 4B / 15B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs90.07892016/06/05 23:14:064B / 4B / 1B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik180.01682016/06/06 05:00:590B / 5B / 11B

FerNANDo _

RankUserSizeTimeDateStatistics
1tails810.04442016/06/07 17:35:290B / 41B / 0B
2%20810.03852016/06/07 17:57:130B / 41B / 0B

DOS _

RankUserSizeTimeDateStatistics
1chocobi282.46062016/06/27 00:04:2117B / 5B / 3B

Vim _

RankUserSizeTimeDateStatistics
1FizzyTea170.06612016/06/09 07:59:040B / 6B / 9B
2xsot170.01262016/06/11 13:11:090B / 6B / 9B

Scala _

RankUserSizeTimeDateStatistics
1Hendrik355.42162016/06/09 21:13:190B / 18B / 14B
2teebee353.38552016/06/20 07:08:440B / 18B / 14B

Logo _

RankUserSizeTimeDateStatistics
1teebee320.00032016/07/01 21:08:000B / 17B / 11B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs910000
2sedmitchs136923
3VimFizzyTea175294
4BurlesqueHendrik185000
5ZshHendrik194736
6Bash%20194736
7Bash (builtins)%20194736
8Fish%20194736
9AWKHendrik194736
10xgawkHendrik194736
11Kteebee204500
12Befunge-98ninjalj204500
13Perl6tanon214285
14Befunge%20224090
15dctails (ninjalj)224090
16Perl%20233913
17Rubytails243750
18Jpooq243750
19Brainfuckmitchs (cheat)263461
20Ruby2%20263461
21maketails263461
22PHP%20263461
23waketeebee263461
24Octavepooq273333
25DOSchocobi283214
26BASICpooq293103
27PARI/GPHendrik303000
28PythonHendrik312903
29Asymptoteteebee312903
30LuaHendrik322812
31Logoteebee322812
32Iopooq322812
33bcludo322812
34Python3mitchs332727
35JavaScriptFizzyTea332727
36ScalaHendrik352571
37Schemekaki352571
38Rludo352571
39Maximapooq382368
40Cmitchs392307
41Haskellhenkma412195
42ObjC%20442045
43Javadc631428
44FerNANDotails811111
45C#Hendrik841071
46Whitespacekaz_u861046

return top