Sort Suffixes

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

Given string S. Sort all nonempty suffixes of S in ASCII lexicographical order.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

ScalaMatsuri

Sample output:

Matsuri
ScalaMatsuri
aMatsuri
alaMatsuri
atsuri
calaMatsuri
i
laMatsuri
ri
suri
tsuri
uri

Sample input:_

the quick brown fox jumps over the lazy dog

Sample output:

 brown fox jumps over the lazy dog
 dog
 fox jumps over the lazy dog
 jumps over the lazy dog
 lazy dog
 over the lazy dog
 quick brown fox jumps over the lazy dog
 the lazy dog
azy dog
brown fox jumps over the lazy dog
ck brown fox jumps over the lazy dog
dog
e lazy dog
e quick brown fox jumps over the lazy dog
er the lazy dog
fox jumps over the lazy dog
g
he lazy dog
he quick brown fox jumps over the lazy dog
ick brown fox jumps over the lazy dog
jumps over the lazy dog
k brown fox jumps over the lazy dog
lazy dog
mps over the lazy dog
n fox jumps over the lazy dog
og
over the lazy dog
own fox jumps over the lazy dog
ox jumps over the lazy dog
ps over the lazy dog
quick brown fox jumps over the lazy dog
r the lazy dog
rown fox jumps over the lazy dog
s over the lazy dog
the lazy dog
the quick brown fox jumps over the lazy dog
uick brown fox jumps over the lazy dog
umps over the lazy dog
ver the lazy dog
wn fox jumps over the lazy dog
x jumps over the lazy dog
y dog
zy dog

Sample input:_

that that is is that that is not is not is that it it is

Sample output:

 is
 is is that that is not is not is that it it is
 is not is not is that it it is
 is not is that it it is
 is that it it is
 is that that is not is not is that it it is
 it is
 it it is
 not is not is that it it is
 not is that it it is
 that is is that that is not is not is that it it is
 that is not is not is that it it is
 that it it is
 that that is not is not is that it it is
at is is that that is not is not is that it it is
at is not is not is that it it is
at it it is
at that is is that that is not is not is that it it is
at that is not is not is that it it is
hat is is that that is not is not is that it it is
hat is not is not is that it it is
hat it it is
hat that is is that that is not is not is that it it is
hat that is not is not is that it it is
is
is is that that is not is not is that it it is
is not is not is that it it is
is not is that it it is
is that it it is
is that that is not is not is that it it is
it is
it it is
not is not is that it it is
not is that it it is
ot is not is that it it is
ot is that it it is
s
s is that that is not is not is that it it is
s not is not is that it it is
s not is that it it is
s that it it is
s that that is not is not is that it it is
t is
t is is that that is not is not is that it it is
t is not is not is that it it is
t is not is that it it is
t is that it it is
t it is
t it it is
t that is is that that is not is not is that it it is
t that is not is not is that it it is
that is is that that is not is not is that it it is
that is not is not is that it it is
that it it is
that that is is that that is not is not is that it it is
that that is not is not is that it it is

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat310.03282019/06/24 00:32:250B / 16B / 14B
2mitchs310.03292019/06/24 03:27:140B / 16B / 14B
3llhuii310.03612019/06/24 07:23:310B / 16B / 14B
4tails310.03342019/06/24 17:53:310B / 16B / 14B
5rotary-o310.03552019/06/27 23:14:020B / 16B / 14B
6mitchs (alt)330.03252019/06/24 03:29:120B / 12B / 21B
7olf410.03362019/06/28 01:25:470B / 23B / 17B
8shinh450.03242019/06/27 00:34:380B / 24B / 20B
9llhuii(mitchs)320.03292019/06/30 15:54:540B / 16B / 16B

Ruby2 _

RankUserSizeTimeDateStatistics
1Histocrat310.23412019/06/24 00:33:420B / 16B / 14B
2mitchs310.14842019/06/24 03:27:440B / 16B / 14B
3llhuii310.15832019/06/24 07:23:370B / 16B / 14B
4tails310.14622019/06/24 17:54:290B / 16B / 14B
5rotary-o310.15442019/06/27 23:13:510B / 16B / 14B
6letranger370.14732019/06/22 07:44:380B / 16B / 20B
7hako370.16482019/06/22 09:42:290B / 16B / 21B

Perl _

RankUserSizeTimeDateStatistics
1tails300.03242019/06/22 17:45:370B / 13B / 15B
2mitchs300.03302019/06/24 03:42:030B / 13B / 15B
3llhuii300.03272019/06/24 07:20:220B / 13B / 15B

Python _

RankUserSizeTimeDateStatistics
1mitchs640.07202019/06/26 22:30:470B / 40B / 20B
2llhuii640.07262019/06/28 22:07:000B / 40B / 21B
3dianne650.07242019/06/22 10:17:280B / 42B / 19B
4xulapp650.07192019/06/22 13:37:390B / 42B / 19B
5clock650.07682019/06/22 16:26:060B / 42B / 19B
6Hendrik650.09052019/06/23 04:44:460B / 42B / 19B
7hallvabo650.07042019/06/27 05:15:580B / 42B / 19B
8mypetlion660.07952019/06/22 02:51:320B / 42B / 20B
9rolf660.07582019/06/22 03:22:390B / 44B / 14B
10Dingledooper680.07242019/06/23 06:44:442B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii580.12072019/06/22 20:32:390B / 34B / 21B
2mitchs590.12312019/06/26 22:24:370B / 36B / 19B
3xsot590.12242019/06/26 23:16:240B / 34B / 22B
4xsot (alt)590.12432019/06/27 15:02:190B / 36B / 19B
5xsot (alt2)590.11482019/06/29 00:07:430B / 36B / 17B
6xsot (alt3)590.11702019/06/29 00:07:570B / 34B / 22B
7mypetlion610.12412019/06/24 12:11:020B / 38B / 19B
8dianne620.11772019/06/22 10:20:330B / 38B / 20B
9gobi620.11402019/06/28 16:33:510B / 38B / 21B

Scheme _

RankUserSizeTimeDateStatistics
1kaki800.22502019/06/28 01:46:290B / 52B / 25B

Common LISP _

RankUserSizeTimeDateStatistics
1ttmh860.12122019/06/28 07:26:140B / 57B / 26B

JavaScript _

RankUserSizeTimeDateStatistics
10mg580.04252019/06/26 10:51:370B / 36B / 20B
2clock670.04472019/06/25 14:43:160B / 40B / 24B
3xulapp680.03942019/06/22 09:05:190B / 40B / 25B
4ZED.CWT680.03932019/06/22 09:54:050B / 40B / 26B

Lua _

RankUserSizeTimeDateStatistics
1clock770.03192019/06/22 19:54:580B / 49B / 23B

Perl6 _

RankUserSizeTimeDateStatistics
1tails311.23892019/06/24 19:07:430B / 16B / 12B

J _

RankUserSizeTimeDateStatistics
1kritixilithos160.06002019/06/22 14:21:320B / 5B / 11B
2Hendrik160.06822019/06/22 19:59:330B / 5B / 11B

C _

RankUserSizeTimeDateStatistics
1tails830.03252019/06/28 23:27:560B / 40B / 43B
2llhuii850.03552019/06/28 22:47:500B / 43B / 42B
3shinh910.03182019/06/28 03:24:110B / 45B / 46B
4tails (shinh)820.03302019/07/03 14:33:190B / 44B / 38B
5tails (ungolfed)3980.03162019/06/29 14:39:210B / 209B / 90B

Haskell _

RankUserSizeTimeDateStatistics
1henkma540.03942019/06/23 00:30:250B / ?B / ?B
2Hendrik540.03662019/06/23 01:38:260B / 46B / 6B
3dianne540.04172019/06/23 06:53:210B / 46B / 6B

AWK _

RankUserSizeTimeDateStatistics
1llhuii740.03472019/06/26 21:16:300B / 31B / 43B

Bash _

RankUserSizeTimeDateStatistics
1tails (gs2)170.18362019/06/22 23:51:251B / 5B / 9B
2tails (nobin,gs2)220.17122019/06/28 08:41:110B / 9B / 11B
3tails (nobin)240.01122019/06/22 23:42:510B / 11B / 12B
4eban310.02952019/06/22 07:06:160B / 19B / 10B
5McBusLuck1521.03552019/06/27 21:35:400B / 51B / 86B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii490.06142019/06/26 19:27:090B / 18B / 26B
2tails510.10392019/06/27 18:33:400B / 21B / 24B
3McBusLuck1521.00372019/06/27 21:41:060B / 51B / 86B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii570.03352019/06/24 08:07:430B / 27B / 30B

R _

RankUserSizeTimeDateStatistics
1olf690.32242019/06/29 00:20:040B / 46B / 23B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs90.04182019/06/25 05:49:090B / 1B / 8B
2clock90.04242019/06/25 09:23:360B / 1B / 8B

gs2 _

RankUserSizeTimeDateStatistics
1tails40.19422019/06/22 09:18:370B / 1B / 3B
2mitchs40.18952019/06/27 03:41:400B / 1B / 3B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik160.03712019/06/22 01:45:570B / 10B / 6B

Groovy _

RankUserSizeTimeDateStatistics
1Hendrik632.15462019/06/23 23:00:180B / 39B / 21B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o456.54272019/06/22 11:43:520B / 39B / 4B
2ush456.48212019/06/22 16:43:390B / 39B / 4B
3Hendrik456.76702019/06/22 16:54:220B / 39B / 4B
4xulapp456.61082019/06/23 05:15:420B / 39B / 4B
5gobi558.51142019/06/26 18:11:020B / ?B / ?B
6guersam456.62342019/06/29 15:01:160B / 39B / 4B
7ik11235706.85432019/06/29 12:24:170B / ?B / ?B
8ats1067.99552019/06/29 12:17:180B / ?B / ?B
9prololo1097.78262019/06/29 12:10:050B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1gs2tails410000
2GolfScriptmitchs94444
3BurlesqueHendrik162500
4Jkritixilithos162500
5Bashtails (gs2)172352
6Perltails301333
7RubyHistocrat311290
8Ruby2Histocrat311290
9Perl6tails311290
10Scalarotary-o45888
11Bash (builtins)llhuii49816
12Haskellhenkma54740
13xgawkllhuii57701
14Python3llhuii58689
15JavaScript0mg58689
16GroovyHendrik63634
17Pythonmitchs64625
18Rolf69579
19AWKllhuii74540
20Luaclock77519
21Schemekaki80500
22Ctails (shinh)82487
23Common LISPttmh86465

return to the top page