Character distance

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

The character string to which the same character appears two times is given.
Request the distance between the same characters.

Options

exec is denied

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

Sample input:_

abcbca

Sample output:

a: 5
b: 2
c: 2

Sample input:_

ekh5.acwed4db:lls4f3z@x.6f2sw35pub@:x6uo;k2czraj;hjpor

Sample output:

e: 8
k: 40
h: 47
5: 27
.: 19
a: 41
c: 37
w: 21
d: 2
4: 7
b: 21
:: 22
l: 1
s: 11
f: 7
3: 10
z: 24
@: 13
x: 14
6: 13
2: 16
p: 20
u: 6
o: 13
;: 8
r: 8
j: 3

Sample input:_

VORrF|A6GJZWo;R&nE3a=e"f<dsp`cXhn<b2j!*zj4)J?s;o5}z":Kf6~@TFEU*XK{DkSBwu?A(:5HGQCmHS2+L.%x~hU#{P`|Ilum#dT(NZ@WBMw=$V.OD!%4N)rCpQP>lak$3bxIYMY&L}+e>c

Sample output:

V: 115
O: 116
R: 12
r: 121
F: 55
|: 92
A: 67
6: 48
G: 70
J: 34
Z: 97
W: 98
o: 35
;: 33
&: 126
n: 16
E: 43
3: 116
a: 112
=: 93
e: 124
": 29
f: 31
<: 9
d: 78
s: 19
p: 99
`: 68
c: 118
X: 33
h: 60
b: 101
2: 49
j: 4
!: 82
*: 24
z: 11
4: 80
): 81
?: 28
5: 28
}: 94
:: 23
K: 11
~: 34
@: 51
T: 46
U: 31
{: 29
D: 52
k: 65
S: 15
B: 41
w: 42
u: 29
(: 31
H: 5
Q: 48
C: 45
m: 20
+: 59
L: 56
.: 29
%: 32
x: 47
#: 9
P: 33
I: 39
l: 31
N: 16
M: 28
$: 19
>: 17
Y: 2

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yvl490.01672011/01/09 20:26:310B / 17B / 29B
2leonid490.01562011/01/09 22:22:310B / 22B / 25B
3eban520.01702011/01/12 14:34:400B / 23B / 27B
4ksk480.01732011/01/16 15:57:060B / 15B / 30B

Perl _

RankUserSizeTimeDateStatistics
1Mithran380.00642011/01/09 21:55:440B / 12B / 24B
2ySas380.00652011/01/10 14:20:250B / 12B / 24B
3teebee380.01322011/01/11 01:12:340B / 10B / 26B
4twobit590.02092011/01/12 06:03:590B / 22B / 34B

Python _

RankUserSizeTimeDateStatistics
1leonid670.08612011/01/15 12:07:440B / 37B / 20B
2hallvabo670.07572011/01/15 12:11:580B / 37B / 20B
3twobit710.08182011/01/11 06:23:110B / 39B / 24B
4recursive770.07022011/01/12 01:55:370B / 43B / 23B

PHP _

RankUserSizeTimeDateStatistics
1Endres910.09552011/01/09 04:29:081B / ?B / ?B
2clock800.09542011/10/24 12:44:391B / 37B / 39B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1170.07182011/01/10 09:35:370B / 60B / 55B
2kaki1100.10342011/06/12 05:50:030B / 57B / 51B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima1140.56332011/01/11 09:09:130B / 69B / 37B

Io _

RankUserSizeTimeDateStatistics
1pooq1100.50002011/01/12 15:05:220B / 78B / 27B

JavaScript _

RankUserSizeTimeDateStatistics
1nn640.01372011/01/10 11:25:170B / 25B / 39B
20mg650.00832011/01/10 04:48:390B / 38B / 25B
3xulapp650.00852011/01/16 02:01:340B / 40B / 23B
4idealmachine670.00582011/01/10 00:19:410B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1yamaya900.00332011/01/15 22:54:290B / 52B / 30B

Xtal _

RankUserSizeTimeDateStatistics
1pooq1160.13442011/01/12 12:59:520B / 61B / 54B

BASIC _

RankUserSizeTimeDateStatistics
1idealmachine800.00422011/01/10 00:33:540B / ?B / ?B
2pooq800.00442011/01/10 11:14:510B / 43B / 29B

J _

RankUserSizeTimeDateStatistics
1I., S.350.11762011/01/09 19:59:010B / 8B / 26B
2pooq470.10932011/01/16 00:40:180B / 9B / 37B

C _

RankUserSizeTimeDateStatistics
1nai780.00192011/01/09 10:16:380B / 41B / 36B
2inaniwa780.01482011/01/09 10:43:240B / 41B / 36B
3nn780.00192011/01/10 11:18:210B / 41B / 36B
4not840.00202011/01/09 04:51:130B / 44B / 39B
5_790.00192011/01/23 15:14:490B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1130.11712011/01/11 14:48:520B / 72B / 32B
2ksk1120.13872011/01/16 16:08:060B / 53B / 51B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa790.00412011/01/09 22:56:030B / 43B / 29B
2_790.00412011/01/16 01:16:430B / 43B / 30B
3koyama41810.00402011/01/09 21:27:390B / 43B / 36B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1540.43882011/01/16 01:46:300B / 101B / 46B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1190.00212011/01/09 18:38:380B / 76B / 36B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1110.01112011/01/09 16:26:380B / 66B / 43B
2*yuko*1070.03952011/11/27 00:02:350B / 65B / 40B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1142.11592011/01/12 12:35:210B / 60B / 50B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa980.67272011/10/22 00:07:490B / 56B / 38B

AWK _

RankUserSizeTimeDateStatistics
1yamaya630.00332011/01/12 21:22:100B / 29B / 32B

Bash _

RankUserSizeTimeDateStatistics
1teebee390.00872011/01/16 00:14:570B / 9B / 27B
2yamaya710.08632011/01/10 12:09:400B / 39B / 24B

Zsh _

RankUserSizeTimeDateStatistics
1teebee390.10792011/01/16 00:16:250B / 9B / 27B

GolfScript _

RankUserSizeTimeDateStatistics
1narb240.16842011/01/13 18:02:100B / ?B / ?B
2twobit330.17752011/01/11 05:03:210B / 7B / 25B

gs2 _

RankUserSizeTimeDateStatistics
1whio160.24502017/07/18 22:19:284B / 4B / 7B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*540.70872011/01/10 13:53:4629B / 14B / 8B

Vim _

RankUserSizeTimeDateStatistics
1udioica360.28132017/06/18 06:35:564B / 19B / 10B

Groovy _

RankUserSizeTimeDateStatistics
1nn736.62802011/01/10 16:30:550B / 46B / 24B
2nn676.38542011/01/23 21:00:300B / 29B / 37B

Language Ranking_

RankLangUserSizeScore
1gs2whio1610000
2GolfScriptnarb246666
3JI., S.354571
4Vimudioica364444
5PerlMithran384210
6Bashteebee394102
7Zshteebee394102
8Rubyksk483333
9z80*yuko*542962
10AWKyamaya632539
11JavaScriptnn642500
12Pythonleonid672388
13Groovynn672388
14Cnai782051
15Haskellnotogawa792025
16BASICidealmachine802000
17PHPclock802000
18Luayamaya901777
19Octaveinaniwa981632
20Fortran*yuko*1071495
21Iopooq1101454
22Schemekaki1101454
23OCamlksk1121428
24Common LISPkozima1141403
25Maximapooq1141403
26Xtalpooq1161379
27Pascal*yuko*1191344
28Javahallvabo1541038

return top