Chess960

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

https://en.wikipedia.org/wiki/Fischer_random_chess_numbering_scheme#Direct_derivation

Given a number 0-959, generate the piece order.

Options

exec is denied

rejudge feature is enabled

12day(s) and 11:53:56 before deadline (02/07 08:08:04 JST), all source codes will be revealed after the deadline

Sample input:_

633
574
614
274
704
551
853
214
354
846
722
216
520
267
78
27
369
676
192
290
859
741
702
794
191
29
121
464
593
68
344
942
812
501
789
130
51
402
954
946
386
315
450
55
161
116
596
652
110
422

Sample output:

RNKBBQRN
RNKNRBBQ
RNBQKBRN
BNRKNBRQ
BBRKQNNR
RNBKNQRB
RKBBNRNQ
NQBRKBNR
BNRKRBQN
RKNRQBBN
BRKNQBNR
NBQRBKNR
RBNQBKNR
NRKNBQRB
NNRKQBBR
NQNRBKRB
BNRBKRNQ
QBBRKNNR
BBQNRKNR
BQNRKBRN
RKNRBNQB
RKBBNNQR
RQKNNBBR
RQKNBBRN
NRNKRQBB
NQNBRKBR
NQRBBNKR
BBRNNKRQ
BRQBNKRN
NBBNRKQR
NBRKBQRN
RKRNQBBN
RBKQNRBN
RQBBNKNR
RQBBKNRN
BNRQNBKR
BNNRQKRB
BRQNNBKR
RKRNBBNQ
BRKRNBNQ
BQRNNBKR
NQRKBRNB
BRNNKBQR
NNBRQKRB
BNRBNKQR
NBBQRNKR
RBBQNKRN
RBNKRQBN
QNRNKBBR
RNBQNBKR

Sample input:_

482
883
913
453
0
825
823
61
911
771
802
832
519
640
167
106
174
788
222
329
744
900
816
524
621
285
657
200
371
12
525
777
733
199
475
121
108
445
625
191
354
564
134
431
850
807
160
180
929
517

Sample output:

BQRNKBNR
BRQKRNNB
BRKBRQNN
RNBBNKQR
BBQNNRKR
RKNBBQRN
RKBNQRNB
NNRBQKBR
RKQRNNBB
BQRKNRNB
BRKQNBRN
BBRKNRQN
RNBQKNRB
BBRNKRQN
NRBNKQRB
QNRNBBKR
NRNKQBBR
RBBQKNRN
NQRKNBBR
NRQBBKRN
RBKNBNQR
RBBKQRNN
BBRKNQRN
RBNQKNBR
RNQBKRBN
NRKBNRBQ
BRNBKRNQ
QBNRBKNR
BNRKRNQB
QBNNRKBR
RNQBKNBR
QRKBBNRN
RKNBQNBR
QNBRKNRB
RNNKBRQB
NQRBBNKR
QBNRNKBR
RNNBQKBR
BRNBKQRN
NRNKRQBB
BNRKRBQN
RBBNKNRQ
NRBQNBKR
RNQNKRBB
BRKNRBNQ
RKBQNRNB
BBNRNKQR
NBBRNKRQ
BRKBRNQN
RNBBQKNR

Sample input:_

281
46
603
234
208
594
890
929
588
645
361
546
167
693
434
442
373
100
355
713
635
616
754
946
191
575
168
540
697
593
185
589
611
684
144
598
680
915
854
709
639
203
346
431
47
371
64
757
894
508

Sample output:

NRKBBNRQ
NNQRKBBR
RQNKBRNB
NRQKBBNR
BBNQRKNR
BRQNKBRN
RQKRBBNN
BRKBRNQN
QBRNKRBN
RNBBKRQN
NRKBBRQN
BRNKNBQR
NRBNKQRB
RQBBKNNR
BRNNQBKR
RNNQBBKR
NRBBKRNQ
QBBNRNKR
BNRKRQNB
RKQBBNNR
RNKQBRNB
RBNQBKRN
BRKNNBRQ
BRKRNBNQ
NRNKRQBB
RNKNRQBB
NBRNBKQR
RBNKQNBR
RQKBBNNR
BRQBNKRN
NRNBBKRQ
QRNBKRBN
BRNQKRNB
QBRKNNBR
BBNRNQKR
RQBNKBRN
QBRKBNNR
BRKRQNNB
RKBNRBNQ
RKBBQNNR
RNKQRNBB
QNRKBNRB
NRKQBBRN
RNQNKRBB
NNQRKRBB
BNRKRNQB
BBNNRKQR
RKBBNNRQ
RQKRNBBN
RBQNKNBR

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1rotary-o1240.07062021/01/17 10:14:1010B / 51B / 53B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o1260.16992021/01/14 20:41:120B / 60B / 61B

Perl _

RankUserSizeTimeDateStatistics
1tails1160.07802021/01/12 10:08:480B / 52B / 58B

Python _

RankUserSizeTimeDateStatistics
1xnor1440.08572021/01/13 11:31:060B / 80B / 52B
2ovs1460.09222021/01/18 21:23:390B / ?B / ?B
3TFeld002050.09312021/01/11 21:01:030B / 108B / 83B

sed _

RankUserSizeTimeDateStatistics
1tails2200.09652021/01/13 18:08:380B / 74B / 125B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails1390.28112021/01/14 22:37:270B / 55B / 76B

dc _

RankUserSizeTimeDateStatistics
1tails1410.05522021/01/15 11:28:290B / 110B / 31B

gs2 _

RankUserSizeTimeDateStatistics
1tails481.18132021/01/12 18:52:5421B / 19B / 6B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails16540.40592021/01/22 20:12:300B / 905B / 749B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o1548.27462021/01/17 10:07:2210B / 78B / 61B

Language Ranking_

RankLangUserSizeScore
1gs2tails4810000
2Perltails1164137
3Rubyrotary-o1243870
4Ruby2rotary-o1263809
5Bash (builtins)tails1393453
6dctails1413404
7Pythonxnor1443333
8Scalarotary-o1543116
9sedtails2202181
10Lazy-Ktails1654290

return to the top page