uniq chars

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

Uniq characters in each line.

-- tails

Options

exec is denied

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

Sample input:_

sprintf FORMAT, LIST
    Returns a string formatted by the usual "printf" conventions of the C library function "sprintf".  See below for
    more details and see sprintf(3) or printf(3) on your system for an explanation of the general principles.

    For example:

            # Format number with up to 8 leading zeroes
            $result = sprintf("%08d", $number);

            # Round number to 3 digits after decimal point
            $rounded = sprintf("%.3f", $number);

    Perl does its own "sprintf" formatting: it emulates the C function sprintf(3), but doesn't use it except for
    floating-point numbers, and even then only standard modifiers are allowed.  Non-standard extensions in your local
    sprintf(3) are therefore unavailable from Perl.

    Unlike "printf", "sprintf" does not do what you probably mean when you pass it an array as your first argument. The
    array is given scalar context, and instead of using the 0th element of the array as the format, Perl will use the
    count of elements in the array as the format, which is almost never useful.

    Perl's "sprintf" permits the following universally-known conversions:

       %%    a percent sign
       %c    a character with the given number
       %s    a string
       %d    a signed integer, in decimal
       %u    an unsigned integer, in decimal
       %o    an unsigned integer, in octal
       %x    an unsigned integer, in hexadecimal
       %e    a floating-point number, in scientific notation
       %f    a floating-point number, in fixed decimal notation
       %g    a floating-point number, in %e or %f notation

    In addition, Perl permits the following widely-supported conversions:

       %X    like %x, but using upper-case letters
       %E    like %e, but using an upper-case "E"
       %G    like %g, but with an upper-case "E" (if applicable)
       %b    an unsigned integer, in binary
       %B    like %b, but using an upper-case "B" with the # flag
       %p    a pointer (outputs the Perl value's address in hexadecimal)
       %n    special: *stores* the number of characters output so far
            into the next variable in the parameter list

    Finally, for backward (and we do mean "backward") compatibility, Perl permits these unnecessary but widely-
    supported conversions:

       %i    a synonym for %d
       %D    a synonym for %ld
       %U    a synonym for %lu
       %O    a synonym for %lo
       %F    a synonym for %f

    Note that the number of exponent digits in the scientific notation produced by %e, %E, %g and %G for numbers with
    the modulus of the exponent less than 100 is system-dependent: it may be three or less (zero-padded as necessary).
    In other words, 1.23 times ten to the 99th may be either "1.23e99" or "1.23e099".

Sample output:

sprintf FORMAT,LIS
 Returnsaigfomdbyhl"pcvC.Sw
 moredtailsnpf(3)yuxhgc.

 Forexampl:

 #Formatnubewihp8ldgzs
 $result=pinf("%08d,mb);

 #Roundmbert3igsafclp
 $rounde=spitf("%.3,mb);

 Perldositwn"pfmag:uhCc(3),b'x
 floating-pumbers,dvhyw.Nxc
 sprintf(3)aehouvlbmP.

 Unlike"prtf,sdowhayubmg.T
 aryisgvenclotx,dfuh0mPw
 countfelmsihary,wv.

 Perl's"pintfmhowguvay-kc:

 %apercntsig
 %cahrtewigvnumb
 %satring
 %dasignetr,cml
 %uansigedtr,cml
 %oanusigedtr,cl
 %xanusigedtr,hcml
 %eafloting-pumbr,sc
 %faloting-pumber,xdc
 %gaflotin-pumber,

 Inadito,Perlpmshfwgy-ucv:

 %Xlikex,butsngpr-ca
 %Elike,butsngapr-c"
 %Glikeg,butwhanpr-cs"E(f)
 %banusigedtr,y
 %Blikeb,utsngapr-c"wh#f
 %paointer(ushPlv'dxcm)
 %nspecial:*torhumbf
 intohexvarblpms

 Finaly,forbckwd(em")ptPshu-
 suportedcnvi:

 %iasynomfrd
 %Dasynomfrld
 %Uasynomfrlu
 %Oasynomfrl
 %Fasynomfr

 Notehanumbrfxpdigscy%,EGw
 themodulsfxpna10iy-:br(zc).
 Inotherwds,1.23im9ayb"0

Sample input:_

Perl operators have the following associativity and precedence, listed from highest precedence to lowest.  Operators
borrowed from C keep the same precedence relationship with each other, even where C's precedence is slightly screwy.
(This makes learning Perl easier for C folks.)  With very few exceptions, these all operate on scalar values only, not
array values.

    left        terms and list operators (leftward)
    left        ->
    nonassoc    ++ --
    right       **
    right       ! ~ \ and unary + and -
    left        =~ !~
    left        * / % x
    left        + - .
    left        << >>
    nonassoc    named unary operators
    nonassoc    < > <= >= lt gt le ge
    nonassoc    == != <=> eq ne cmp ~~
    left        &
    left        | ^
    left        &&
    left        || //
    nonassoc    ..  ...
    right       ?:
    right       = += -= *= etc.
    left        , =>
    nonassoc    list operators (rightward)
    right       not
    left        and
    left        or xor

Sample output:

Perl opatshvfwingcyd,m.O
borwed fmCkpthsacnli,v'gy.
(This makelrngPfoC.)Wtvywxcp,u
ary vlues.

 leftrmsandiop(w)
 left->
 noasc+-
 right*
 right!~\anduy+-
 left=~!
 left*/%x
 left+-.
 left<>
 noascmedurypt
 noasc<>=ltge
 noasc=!<>eqmp~
 left&
 left|^
 left&
 left|/
 noasc.
 right?:
 right=+-*ec.
 left,=>
 noasclitper(ghwd)
 rightno
 leftand
 leftorx

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid210.03352013/02/23 02:20:120B / 8B / 11B
2clock210.02902013/02/23 02:53:410B / 8B / 11B
3kaki210.04182013/02/27 15:38:350B / 8B / 11B
4Histocrat210.02142013/03/08 08:25:140B / 9B / 10B
5eban220.03702013/02/27 15:53:110B / 8B / 12B
6jbb270.04802013/02/24 01:04:030B / 14B / 11B
7Volatility330.02482013/02/22 22:42:520B / 22B / 11B
8BioFALSE330.03822013/02/26 08:35:080B / 23B / 8B

Perl _

RankUserSizeTimeDateStatistics
1teebee280.04252013/02/23 02:43:500B / 9B / 17B
2tybalt89280.04592013/03/02 12:47:110B / ?B / ?B
3brx290.25542013/02/23 02:30:150B / 11B / 16B
4jbb360.02772013/02/23 20:46:230B / 17B / 17B
5BioFALSE380.05492013/02/26 08:49:540B / 16B / 22B
6kuropikumin450.02612013/03/05 15:49:240B / 21B / 23B
7Sisyphus220.03352023/01/18 10:37:120B / 11B / 11B

Python _

RankUserSizeTimeDateStatistics
1clock590.08552013/02/24 02:51:080B / 33B / 13B
2leonid590.08922013/02/26 03:33:520B / 33B / 13B
3hallvabo590.06542013/02/26 20:41:370B / 33B / 13B
4twobit590.06612013/02/26 21:01:130B / 33B / 13B
5wilkes610.06292013/02/23 02:41:310B / 42B / 18B
6Volatility610.07482013/02/23 09:08:210B / 42B / 18B
7Hendrik620.06692013/02/24 02:39:010B / 33B / 16B
8inaniwa620.07102013/03/04 21:31:260B / 43B / 18B
9tanon620.05672013/03/08 00:27:060B / 43B / 18B

Python3 _

RankUserSizeTimeDateStatistics
1wilkes580.14322013/02/23 02:42:050B / 38B / 19B
2Volatility590.11902013/02/23 10:06:150B / 39B / 19B

PHP _

RankUserSizeTimeDateStatistics
1teebee590.04502013/03/03 19:47:340B / 40B / 19B
2clock590.05712013/03/03 20:01:080B / 40B / 19B

Scheme _

RankUserSizeTimeDateStatistics
1kaki760.07922013/03/08 21:07:450B / 57B / 17B

Arc _

RankUserSizeTimeDateStatistics
1clock341.91562013/02/23 10:37:080B / 21B / 12B
2teebee362.01102013/02/23 11:24:200B / 24B / 11B
3pooq361.92722013/02/23 12:46:280B / 24B / 11B

Io _

RankUserSizeTimeDateStatistics
1pooq870.19162013/03/05 13:35:000B / 67B / 15B

JavaScript _

RankUserSizeTimeDateStatistics
1Shmiddty660.04082013/03/06 03:24:470B / 39B / 27B
20mg660.04252013/03/06 19:31:540B / 34B / 32B
3clock660.03612013/03/08 01:23:560B / 34B / 32B

Lua _

RankUserSizeTimeDateStatistics
1clock650.02602013/03/05 15:37:491B / 40B / 20B
2twobit650.03272013/03/06 04:06:481B / 40B / 20B
3xgf770.03302013/03/02 13:07:100B / 46B / 28B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock830.02962013/03/08 00:11:050B / 35B / 22B

REXX _

RankUserSizeTimeDateStatistics
1clock690.05922013/03/05 15:28:180B / 42B / 20B

J _

RankUserSizeTimeDateStatistics
1pooq160.08902013/02/22 22:12:540B / 6B / 10B
2random210.06562013/02/23 09:10:020B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee90.00802013/02/23 09:15:440B / 2B / 7B
2twobit90.02012013/02/26 20:47:420B / 2B / 7B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer40.45032021/04/18 09:57:053B / 1B / 0B

C _

RankUserSizeTimeDateStatistics
1nu590.01692013/03/08 10:56:510B / 31B / 28B
2tails600.02642013/02/27 20:09:360B / 31B / 29B
3ush620.01172013/02/27 09:38:450B / 32B / 30B
4L.A.I.N.710.02132013/02/26 19:37:020B / 41B / 30B
5chocobi740.02142013/02/26 22:11:130B / 41B / 33B
6twobit750.01782013/02/26 22:51:360B / 42B / 33B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai840.09312013/02/27 18:56:070B / 48B / 29B

Haskell _

RankUserSizeTimeDateStatistics
1Hendrik440.05822013/02/22 23:58:470B / 34B / 8B
2clock440.02382013/02/23 00:08:550B / 34B / 8B
3henkma440.03472013/02/23 10:10:220B / 34B / 8B
4cojna440.03032013/02/27 02:53:530B / 34B / 8B
5kaki440.02492013/03/08 21:18:260B / 34B / 8B

C# _

RankUserSizeTimeDateStatistics
1Hendrik1260.13822013/02/23 01:47:520B / 91B / 30B
2teebee(Hendrik)1240.14652013/03/30 04:57:350B / 91B / 28B

REBOL _

RankUserSizeTimeDateStatistics
1pooq430.04882013/02/23 01:00:510B / 32B / 8B
2clock430.05092013/02/23 02:57:290B / 32B / 8B
3teebee430.04892013/02/23 09:48:290B / 32B / 8B

AWK _

RankUserSizeTimeDateStatistics
1teebee490.02892013/02/24 21:31:070B / 20B / 29B
2Fleur490.04272023/01/18 10:46:210B / 24B / 25B

sed _

RankUserSizeTimeDateStatistics
1teebee230.16012013/02/23 09:43:230B / 4B / 17B
2clock230.15722013/02/23 10:10:390B / 4B / 17B
3tails230.14812013/02/23 13:55:220B / 4B / 17B
4eban230.15362013/02/27 11:44:170B / 4B / 17B
5kaki230.13842013/03/08 21:17:050B / 4B / 17B
6%20230.14102016/08/09 22:49:100B / 4B / 17B

wake _

RankUserSizeTimeDateStatistics
1clock450.04382013/03/04 14:34:500B / 7B / 35B

Postscript _

RankUserSizeTimeDateStatistics
1rolf (bin)1660.31332013/02/24 00:29:3947B / 68B / 37B
2rolf3270.29152013/02/23 04:29:480B / 196B / 27B

R _

RankUserSizeTimeDateStatistics
1clock660.30062013/03/08 11:28:140B / 41B / 22B
2pooq660.32342013/03/08 11:50:530B / 43B / 21B

Whitespace _

RankUserSizeTimeDateStatistics
1%20900.13862016/08/09 23:49:320B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1tails70.08132013/02/23 13:23:350B / 2B / 5B
2leonid70.05882013/02/23 13:32:050B / 2B / 5B
3clock70.07962013/02/23 13:36:420B / 2B / 5B
4nooodl70.05592013/02/23 22:58:030B / ?B / ?B
5twobit70.06772013/02/26 21:03:310B / 2B / 5B
6kaki70.06652013/03/08 21:11:370B / 2B / 5B

gs2 _

RankUserSizeTimeDateStatistics
1tails50.31012023/01/18 13:58:522B / 3B / 0B

Nibbles _

RankUserSizeTimeDateStatistics
1tails30.03522023/01/18 14:04:372B / 1B / 0B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu60.10012013/02/23 21:49:060B / ?B / ?B
2clock60.20552013/02/23 22:04:350B / 2B / 4B

Burlesque _

RankUserSizeTimeDateStatistics
1clock60.03742013/02/22 22:07:120B / 4B / 2B
2Hendrik60.02562013/02/22 23:02:150B / 4B / 2B
3teebee60.02672013/02/23 08:09:410B / 4B / 2B

Vim _

RankUserSizeTimeDateStatistics
1clock250.19322013/03/03 15:02:590B / 8B / 16B
2udioica230.20572016/12/04 20:40:000B / ?B / ?B
3FizzyTea240.05572013/06/03 11:42:261B / 6B / 17B

Groovy _

RankUserSizeTimeDateStatistics
1clock551.99182013/03/07 15:14:340B / 41B / 13B

Logo _

RankUserSizeTimeDateStatistics
1clock610.14162013/02/23 11:52:460B / 52B / 2B
2teebee690.14282013/02/23 09:37:150B / 60B / 4B

Language Ranking_

RankLangUserSizeScore
1Nibblestails310000
2JellyErik the Outgolfer47500
3gs2tails56000
4Burlesqueclock65000
5FlogScriptmilieu65000
6GolfScripttails74285
7Kteebee93333
8Jpooq161875
9Rubyleonid211428
10PerlSisyphus221363
11sedteebee231304
12Vimudioica231304
13Arcclock34882
14REBOLpooq43697
15HaskellHendrik44681
16wakeclock45666
17AWKteebee49612
18Groovyclock55545
19Python3wilkes58517
20Pythonclock59508
21PHPteebee59508
22Cnu59508
23Logoclock61491
24Luaclock65461
25JavaScriptShmiddty66454
26Rclock66454
27REXXclock69434
28Schemekaki76394
29SNOBOLclock83361
30OCamlm.ukai84357
31Iopooq87344
32Whitespace%2090333
33C#teebee(Hendrik)124241
34Postscriptrolf (bin)166180

return to the top page