Statistics

Problem Statement for "RoundRobin"

Problem Statement

In a Round Robin tournament everyone plays everyone else exactly once. The only valid results will be a win, a draw or a loss. A win is awarded with 2 points, a draw 1 point and a loss 0 points. Given a table containing all the results in the tournament, you are to determine the placement of each player.

The crosstable will be given as a String[], where character i in element j (both zero based) is the result of player j against player i. The character can be either '2' (player j won against player i), '1' (draw) or '0' (player j lost against player i). Of course, a player doesn't play against himself, so character i in element i will always be a '-'.

For example, the crosstable in a tournament with three players can look like this:

{"-02",
 "2-1",
 "01-"}

In this tournament, player 0 lost against player 1 and won against player 2, player 1 won against player 0 and drew against player 2 while player 2 lost against player 0 and drew against player 1.

A point group is a set of players with the same total points. The first point group is the set of players with the highest total points, etc. If a tournament has 6 players, getting 7, 2, 4, 5, 7, and 5 points respectively, there are four point groups: the first point group consists of player 0 and 4, the second of player 3 and 5, the third of player 2 and the fourth of player 1.

To determine the placement of the players, the following sorting keys are used (in this order):

  1. Highest points against all players.
  2. Highest points against all players except those in the last point group.
  3. Highest points against all players except those in the last two point groups.
  4. ...
  5. Highest points against all players in the first point group.
  6. Lowest player index.

Create a class RoundRobin which contains the method order which takes as input a String[] results and returns a int[] containing the placement of the players in the tournament. The first element in the return value should be the winner of the tournament, etc. The first player is considered to be number 0, the second number 1, and so on.

Definition

Class:
RoundRobin
Method:
order
Parameters:
String[]
Returns:
int[]
Method signature:
int[] order(String[] results)
(be sure your method is public)

Constraints

  • results will contain between 1 and 50 elements, inclusive.
  • Each element in results will contain the same number of characters as the number of elements in results.
  • Each element in results will only contain the characters '-', '0', '1' and '2'.
  • Character i in element i in results will be a '-', and no other character in results will be a '-'.
  • If character i in element j in results is '0', then character j in element i in results is '2'.
  • If character i in element j in results is '2', then character j in element i in results is '0'.
  • If character i in element j in results is '1', then character j in element i in results is '1'.

Examples

  1. {"-21112", "0-2221", "10-022", "102-01", "1002-2", "01010-"}

    Returns: { 1, 0, 2, 4, 3, 5 }

    The points for the 6 players are 7, 7, 5, 4, 5 and 2 respectively. We thus have 4 point groups (we denote them 2p, 4p, 5p, 7p). To separate player 0 and 1 who both got 7 points against all other opponents, we check how much they got against all players in the point groups 4p, 5p and 7p. Player 0 got 5 points and player 1 got 6 points against those, so player 1 is placed before player 0. To separate player 2 and 4 who both got 5 points, we repeat the procedure. Against those in point groups 4p, 5p and 7p they both got 3 points, so they're still tied. Against those in point groups 5p and 7p, player 2 got 3 points while player 4 only got 1 point, so player 2 is placed before player 4. Thus the ordering becomes 1, 0, 2, 4, 3, 5.

  2. {"-2110", "0-211", "10-12", "111-1", "2101-"}

    Returns: { 0, 1, 2, 3, 4 }

    All players got 4 points, so everyone is in the same point group. Thus the only way of separating the players is by player index.

  3. {"-1102121", "1-010200", "12-00100", "212-2201", "0220-011", "10102-11", "022211-0", "1221112-"}

    Returns: { 3, 7, 0, 6, 5, 4, 1, 2 }

  4. {"-12122111001121", "1-1012210221111", "01-010002021210", "122-22001100121", "0110-1121112112", "00201-111102122", "102211-12000111", "1122011-0011111", "12011102-212102", "202111220-11012", "2002122111-0002", "11120021012-100", "110111111221-01", "0110101121222-0", "11210011000212-"}

    Returns: { 8, 1, 0, 9, 4, 3, 12, 10, 13, 5, 6, 7, 11, 14, 2 }

  5. {"-"}

    Returns: { 0 }

    Only a single player is possible.

  6. {"-010210220","2-12101212","11-1202112","201-120101","0101-21100","12200-2222","210210-111","0011101-01","01122012-1","200120111-"}

    Returns: { 5, 1, 2, 8, 6, 3, 9, 0, 4, 7 }

  7. {"-221111202101020111221101211","0-12122012101201020212011001","01-1210021021111101001011011","101-021212222101120112110012","1102-21120210112112221220022","10100-1221012201011111101111","102111-011021121122012011221","0220102-11010111101112121111","21010011-1210021121110122101","001021111-122022121100210212","1120022201-21012210111011021","22001101100-2112202212111122","111020122010-011011010111222","2011101122212-01122112102021","02121201001112-1101211101011","211101111000111-110101222210","1211121111002111-20111212001","10201102001210210-1101111101","121201011120101221-111001012","0021012111102101111-22121102","01210111121111121210-1101111","101011002210201111101-001112","1221012110211110012112-02212","21110210011112201120222-1010","111221110211101001111101-011","0222210110210220212111022-11","12110101210000112212111111-2","111001111010011211001002110-"}

    Returns: { 4, 13, 25, 11, 22, 0, 6, 3, 9, 23, 16, 10, 19, 20, 26, 8, 1, 7, 18, 15, 14, 12, 24, 5, 17, 21, 2, 27 }

  8. {"-101111212220101","1-10201021100011","21-1112210202101","121-021102012111","1012-20101100111","12100-2210111220","110120-111101012","0201101-21210111","10122110-1011010","012012111-211111","0102111020-10112","02212121111-0212","220021121122-011","1211102121102-21","21211011111110-2","111112012100110-"}

    Returns: { 11, 13, 12, 2, 9, 14, 0, 3, 5, 7, 15, 10, 6, 4, 8, 1 }

  9. {"-12212100001111120122112","1-1120111110110211202021","01-220012010120100111121","010-11011012211212101122","1001-0011001100201101101","02212-010211121200211112","112222-02012110010120021","2111112-0012102101012121","21011202-211012011112211","212220220-11121101211021","2111211111-1111011011211","12201100111-121212221111","111011112111-11110210001","1101201210101-0012021212","12212120011112-120011212","101000212120121-11021121","0121221212111101-1101200","21201221111020211-111201","101110121020022211-01101","0212210111101010212-0111","00111120011121111112-021","121111210201200100112-11","1000210010112110222101-2","01101011111110012111110-"}

    Returns: { 9, 11, 14, 8, 17, 5, 0, 7, 3, 16, 10, 6, 15, 1, 21, 20, 19, 13, 18, 22, 12, 2, 23, 4 }

  10. {"-121021","1-11010","01-1211","111-111","2201-11","01111-0","121112-"}

    Returns: { 6, 4, 0, 2, 3, 1, 5 }

  11. {"-0","2-"}

    Returns: { 1, 0 }

  12. {"-20002110112211011102202011111120121011","0-0021221112121011112021122211111201100","22-012011111000212111120110221212111110","222-11221222222121002202212221001111121","2011-2220221112002011011001101121111121","01010-122210122121122101000111111000221","102001-12221211021110101111220011111111","1010001-1110201021120021000221210121110","21112001-212102120110201212011112121221","111000010-01212111010100011010110001011","1110010112-0121121110211102211121122102","00101212012-111100111200120200200100011","012011001011-11110101210111112201012020","1020101221011-1220002010011011110110122","11200011001111-111210112000002000111201","220121221111101-11121010102101100212212","1110200001021011-1111100112001220222010","11010111211222111-112011212010210202001","111221111211120111-11101011221112211220","2112101011112210111-2012122210121120211","00101022222110211010-211101111101211101","021021120100021212120-12011100112211102","2002122022121111212111-0102011100111110","01201111121222022110102-120121211100020","211022120211122110211211-11110011011022","1011221211201122111021201-2111111112121","10201212010211200010110210-112011210101","100011002200122122001121111-00120110011","1100210011121122210112101112-0110020221","11111121121201011212121121022-202222221","110211201110012100111110212110-00100112","0112011111022122011021211110122-1110200","21011112021212222201102111122021-211011","101112111211211000010011210120110-11011","0211121002021111021011121111002111-1112","11111211110202100012111210222022111-221","211110110212210022001112211200102210-00","1210001101210021120122100021001211102-0","12211112110120102121102201111102110122-"}

    Returns: { 3, 29, 32, 25, 19, 18, 8, 35, 38, 24, 15, 1, 10, 2, 23, 17, 31, 22, 4, 21, 28, 6, 34, 0, 36, 5, 20, 13, 37, 26, 12, 7, 16, 30, 33, 27, 11, 14, 9 }

  13. {"-0012122111011110112121011010220211112","2-011112222021010220211102020111111210","22-11120001121011112111111112112211022","111-1201210211121121000001011022111101","0111-212221212201102112121200210000211","11100-12022111110101201101011211111110","010211-1020201120210002202121011201111","0021001-111111101210212122222222112002","10200221-11122111101001012120222111112","102100011-0212121102100200120002101011","1012102112-001120201101101212011211010","22100101102-21212201011211021002001211","100111210120-1212122102112101110121211","1111011100111-111120111112101121100101","12210111111001-11120110201210112102121","111021021001111-1011221111120221220100","2211122111200111-111221111101122102010","10111100110011121-11010212201110101100","101022112222000111-0011120101110210110","0201012210110221112-010122120120121002","10121020211211100222-11111111111000010","011212212221211001111-1121012121012111","1112010012110121121211-102111211201112","21121101201011011011111-21111211110201","121202201221112111001020-1100221001112","1011110002110011102011011-220111211002","22120210110211011011121110-00221101200","101121000010221022201111202-1201111122","2201211022011122111210112221-112220011","01120020022211101111110001001-22121220","011011100212101001101011010210-1101021","2100211000102101022211111111001-001212","01012101110211101101220120110112-02012","111121211212022022102121212100222-1100","1111211011111202012120121111211101-011","10210112122001112112211012012020212-21","110211121111120212121112122010011210-1","0201121001211112222021010020121002111-"}

    Returns: { 28, 33, 21, 7, 2, 35, 36, 4, 16, 12, 22, 1, 8, 27, 34, 19, 0, 24, 11, 14, 37, 15, 23, 6, 26, 29, 32, 20, 10, 3, 18, 5, 31, 13, 25, 9, 17, 30 }

  14. {"-102110101221212020101011111122122111","1-21111111100002010220011000101011101","20-0111012211011002202011121110112211","012-111112102100121111221200010001011","1111-11111101120121001010220200110202","11111-2012110102002022001212020111111","211110-122011120110012100121102201221","1121121-10011211111100111000012211220","21111101-1111111100102112211210011122","110010021-121112121201101101211120101","0101112211-20021012012122100110110221","02122111100-2012111100111221120112210","121012111120-121110212110120102210112","0221111011221-10200110111110111221212","12120201110101-1121201202001202020002","001220211010121-012221210110210212200","2221121111211012-02200211110201102122","01200211201112012-1101100110122212112","220110212101221001-110211111111111011","1001222110210100011-11110201201112020","20212012221211202211-0002222201121210","120110020102021121212-201112200021121","2220221111111100010120-21200002211001","11101221120111211211220-1100102212101","111121210101210212120111-011012102220","1210001201101121111001012-21222110221","12020102122001211112012210-0112121212","121220121121221222110022112-021022111","1112021200111100011000212012-11121121","02112021111021212012222210101-0000122","012222002122010210111200000112-101000","1212110021110020101112001112121-12202","01121121101110012111001121000221-1100","010121111220212000101110021012101-112","1102010011001020112201210001112011-12","12112100020111220110102200110022211-1","111101120112000200122111210110202001-"}

    Returns: { 27, 20, 16, 26, 23, 0, 29, 12, 24, 21, 11, 13, 15, 8, 17, 6, 31, 25, 2, 10, 18, 5, 35, 28, 9, 7, 22, 14, 33, 19, 3, 36, 4, 30, 32, 34, 1 }

  15. {"-1111101111222121020112120101111200211101121000","1-110212201120212211111101102210102001020111212","11-11120112002001202121121101012211211212012111","111-1120210210120022011101201111021121111111201","1211-211201121110111112212100112011122201000101","10110-01211010102101021012110210200121111110112","210012-1122120022111011010122212111112221110101","1022111-101111110022221102111101100121111211102","10100011-10011122221011010211021212011112022010","121121021-0110110012102201100201201122012101111","1102110122-211102221211111111111101210221221012","01201211210-11211110121110112001112121111221101","002101011111-0100011101121111011121202120002111","0202122112112-212012120010211102102111221011210","10211121111010-00002001120201011121111111012221","012012010121212-2220222111201010002002111020211","1012200202012020-102111212111110112121102120111","20021112020122201-10111121001211112100220002001","012012100101112021-2112112210102011111112210011","2100111010121002020-110212022202010100210000120","11121220210111201111-11021210101211100120212001","110110101210202011111-1111111022101111122100211","0111011110111210110211-222001102121122101010111","11110221201112110110210-11211012100102021111022","020211121211010110110101-1011000111111120110122","2111002021121221010011011-102111002110102200122","11101111011110001202012021-12001110101011121211","222221011211112212101121121-0202122110021211112","1011220112101111112021111002-120121120120221220","10211001201221221010121221201-21001222210112021","111111120212121111222021212200-2212201122120200","1201020111111012210010002110210-012120111110021","01022011001111121122011112111202-22211021201202","221012121221020211111202121002110-0012101020211","2011121201101010001211121020110002-202220201111","02011111210101121111111111111001020-11221021100","121000101010211202122102112100201121-1111122001","1111010110210110121221001212201210011-121211001","12010101120110111010111211221011210011-21010111","201121011101001120110020021001010200100-1112220","1201111100112111020220112011220111211111-201110","11212110210022221202012110100111020210210-11121","011121110200211002121211120101012020011121-2210","1101222101110102202202212211102212110120110-011","20101111212110001221201211010202001122101102-01","211221221112110112102110001100202112221010112-2","2011101021011211111211100010212101121112212110-"}

    Returns: { 27, 30, 10, 29, 13, 45, 6, 32, 43, 2, 28, 33, 16, 11, 15, 41, 1, 4, 7, 3, 18, 40, 23, 20, 46, 0, 42, 36, 25, 44, 22, 9, 17, 21, 37, 8, 34, 14, 35, 38, 31, 5, 26, 24, 12, 19, 39 }

  16. {"-101120111021111101211111010111111011111","1-11111111111111110220111112100222221120","21-2101021111112122010100211011110012211","110-210110000020110110112111110211100021","1110-11220011102202221212120011020222101","01211-0012110022100001111212121111200112","211212-110102120221210100111112010112202","1121021-11110012021111011012001211011120","11010111-0200101020011110121102211111122","111220212-112120121200211110010002221211","2112211101-01220212102111201011001212201","01121121212-1012121211111111111110121111","111212022011-010012122121220102101220101","1112121211022-21121122201000122220111011","11102001200110-1000121101111021001002102","110200201220211-101212210111021122200110","1111010221012121-00222212012111111200012","21012200001010222-1112111011121111122121","120202112101012121-101112100110100211001","0021020120101110011-00111021112122120102","10110211122100010122-1120001011111112121","122211211201001000121-121202002010110120","1111011210111010011111-00110011001010020","11211121111102211111002-1101121211112101","112001212111111201012121-222111101021011","2101101211010211221220110-01102012122210","11110111012102111120221202-0122121111221","201120101211221101211021012-212210221001","1121211212211122111122211110-21111111210","12111012211120001011121012010-2110012201","121211010211001111201011100010-011120111","1010212002211021111112201210112-02100111","10110111122120201120112121011112-2000110","102121211012121011201211101212100-011120","2021001210010120010111212110121122-11001","10120211101001222010111100101102211-0111","110202011101210220120220101110222112-110","1102110110011211212111212002001111211-02","10102120012121211022000211021211102112-1","121110020111110201101221121121112211201-"}

    Returns: { 28, 13, 26, 11, 1, 4, 27, 9, 12, 17, 10, 6, 39, 24, 16, 23, 38, 25, 33, 36, 15, 2, 37, 31, 32, 20, 29, 21, 5, 7, 34, 8, 0, 19, 18, 35, 30, 3, 14, 22 }

  17. {"-1111202111121011222100112","1-101120112111120211220211","11-21020001010012110112101","120-1111111111121102220110","1111-011121121010110111111","01212-11222111121101101112","200111-1020122210010121101","0221111-212111110200012101","11211020-02111221221010201","112100012-0101120010111011","1011102002-111101210120022","11211111111-21121111011112","011101011210-2110012212211","1121110111110-202011201000","21212101011110-11220210010","101010110020121-0221011211","1201212212112012-120012120","00111120020122001-20010000","011212120111110000-2220011","0120212212210121220-001112","10101112211200022202-20221","201012011101121111020-1211","2202111021210121022121-010","10111111022102201221002-20","112111222101121102110110-0","0112101111001221221011222-"}

    Returns: { 16, 5, 19, 11, 22, 20, 0, 1, 25, 8, 3, 24, 23, 12, 7, 21, 14, 18, 6, 4, 10, 15, 13, 2, 9, 17 }

  18. {"-12212012211212122211110111211101","1-1002022110011011210111121201021","01-121102202111202211210001111200","021-12101222101102120121101111221","1201-1221122210112111100211110111","00101-201110001111012010210211121","221100-01022202111101021210102021","1022022-1120122200100111201020012","00011111-212102121012222110010002","010011210-12112112012021101012012","1120010011-0211111111211021211121","12000202002-101101011111211222010","021102011101-12212102101212211010","1112122021121-1010112110121211011","01112100001101-102000111111120011","120111101111021-11101120011112121","0122111201121121-2121221022110000","01000112101102010-212102111121221","000112112212112110-11120111120112","1110112211112122011-1210110102101","12121012001100211011-112200212111","110112210201111101101-01011211101","1110210100112110020112-0122201201","21212211011112121022012-111110211","112100001120011221110211-11121211","1022111212011011011121011-2221122","11111221211101110112210110-221011","001110122200001111110001100-12112","1211112011101101100211210001-1221","11112102201011202120011211101-122","120011222212222120111100012101-11","2020100121011110201212211011001-0","11211110001221112101111110101012-"}

    Returns: { 0, 23, 25, 3, 30, 16, 4, 13, 26, 29, 18, 19, 12, 24, 2, 10, 7, 6, 20, 17, 15, 9, 8, 28, 32, 22, 1, 11, 31, 21, 5, 27, 14 }

  19. {"-1211221212201102112101011121221101111","1-211110102111021122000111221011222011","00-02221212110210121121012012110201011","112-1021120221101110021122222121111200","1101-221110111211010201111010200111122","01020-01112200112212001212100202220021","010002-0121201212000011110222120222110","1211112-021101110012112111212112101121","01011112-00122111211221211010010211101","121011002-2101222011111121120211212101","0002201120-100211100110121111211000001","01101001111-11101212210111011110010101","211012220221-2111010021011221202211212","1121121101210-121022012111111222122121","12010101100111-21112221211212211220111","201211111012100-2112011120110100101210","0121100210111110-112212101022101212111","11112022021022111-00011011211111111210","100111211121101112-1121110221011210021","0012202011202000021-021111020011201022","12120221011022020212-20211200001021121","220022110111010111000-1110211210202011","1211111011221011011121-101202110212012","21211011011121011211011-11101011001121","111011111001111021111121-1012111120111","1100102111111112112112111-000022112111","10202100211201012002000122-11111020110","001012011011011101002122121-2120111101","1100220022111102011221010210-120121211","02110011200100011122201212111-01110001","011022011111201221112111101002-2101111","1121202021120012111112211012210-002111","10011001002201010100200211211112-11001","202110021121100211120212010101221-1022","1011120110221021012110012021121011-000","12201211112101101022122111110211222-22","111200102222101111000110111212112020-0","1112012111110112121011011121111110202-"}

    Returns: { 13, 35, 12, 3, 0, 14, 7, 9, 20, 31, 33, 1, 22, 28, 37, 16, 18, 2, 17, 25, 30, 5, 8, 6, 24, 4, 36, 23, 27, 15, 21, 34, 19, 26, 29, 11, 10, 32 }

  20. {"-2200112022011020011211210212111120","0-210221102121011111011210010101012","00-10112100112222001211122211111112","211-1121111111121021021120121102010","2221-010210210111211111221111202212","10112-11120211010001111221211112121","101011-1111111212111010121212122011","0101211-111120101001212011110010220","21110111-01211200200100111011021112","022110112-0122211110121011001201210","0021221112-112110111122221001110102","21110011011-11211221210121121011010","101111101011-0212002121112221211111","1101211210012-110111110111222100010","22011201001001-21111111110110120112","010011122111110-0112111102211101102","2101120121210212-111011221200111201","21220212011021111-01000202101111111","112012122110211112-2010211100102211","1111111122110110110-101101102022101","02021120111011112221-11002101112211","111011112001011112121-0100102210211","1111112021021211122112-012120101000","00110012120111110001212-01011021222","110000011100111202122212-1120211112","2202111111110120101102011-110121200","02011001222100100111111211-11201111","111011111220001122222201011-2112212","0211110211111021212010212210-012121","11110112201201111112101201012-11021","121221010211120211201120102111-1212","1110000211211221110002111110011-120","12120120101212110101002010101201-00","011110101121111221121120121100102-2","2002011202021200111111200210110220-"}

    Returns: { 4, 27, 30, 10, 2, 28, 16, 18, 3, 6, 12, 5, 0, 20, 22, 33, 11, 29, 24, 9, 17, 15, 25, 34, 1, 13, 14, 26, 19, 21, 23, 8, 31, 7, 32 }

  21. {"-111111001112012","1-12110120001202","11-1000111111110","101-111221110111","1121-21011111202","11210-0010110021","122112-121011021","2110221-10212100","20101101-1111100","121112121-012120","1211112012-11200","12111111111-1210","011212101011-211","2011022111000-01","12112002202112-2","002101122222110-"}

    Returns: { 14, 9, 6, 15, 4, 10, 11, 7, 3, 12, 0, 1, 13, 2, 8, 5 }

  22. {"-11210022212210022222122222","1-0112211001212201112111102","12-122102200100202022111111","011-21121000202122211211201","1100-1110111121110221022022","20011-112110001111011101111","201111-21102211101111001211","0120110-1202110001121112211","01012011-112211120112211220","020211101-21111200100011111","1222112210-1221100221201011","01221200011-100011200012011","001012010101-12212100102012","1122021111021-0201200000112","20201112111202-122011111111","200111121012001-01201212111","0220112202211202-1111221112","01002111222101011-111021110","012002111100102011-01211010","0101011012022212112-0121201","00011111021222111112-111111","111021210202121002011-10101","0111022111212211001011-1220","01110110111002101111121-000","011021000122211111201102-20","0212011101111111111212020-1","00110111211100110221112221-"}

    Returns: { 0, 16, 10, 14, 3, 8, 2, 1, 22, 20, 19, 4, 6, 25, 26, 7, 15, 24, 21, 13, 17, 9, 12, 5, 18, 11, 23 }

  23. {"-1211101111012","1-111112000111","01-11011111221","111-0120222211","1112-202011022","11210-10111012","211021-1002101","1012021-102112","12102121-11222","121011221-0001","1210110012-212","21002211020-22","110101210210-2","0111001001000-"}

    Returns: { 8, 3, 4, 11, 7, 10, 2, 0, 6, 9, 5, 12, 1, 13 }

  24. {"-1111120211122102111110112201211110","1-112001021020121100102211122121012","11-21122021021120202000021111022111","110-1110111001200002112021221101012","1011-112112101010121202012022111100","12111-22021000102120220110101201102","020110-2110012111001111121211000112","2102000-021211101212110212212112101","02211212-10102211211012012102122101","100110101-2111211202021100221122110","1111012120-222111101010120021012120","12221220110-20121102101001220020120","000222112100-0122122111201110022101","0211120101022-121001011220210101011","11102111001111-22101102111020112022","200212121110000-1110111112211001111","0122201111110101-011211111221010021","11021120001112112-01101211020102222","122200211222022112-1200010011110210","1200121010100112111-102121100111000","11210011222112110101-10022110110110","122120111012112112221-0101211221111","2020021201211101112022-211012211210","10222110211200111021210-12111100102","110011011202201111100211-2011112010","0111021002211210112101100-100122121","01102100102010200221102121-21100111","201002112000110100121111120-1101202","1011011001122221121221011211-102211","01211021112221122111100111111-12001","100212210010021212111012102221-1211","1101112000020101202121120021001-221","12121111111112212002110121100200-10","111122122100210100121112101212101-2","2010200112221101102221202110111120-"}

    Returns: { 21, 8, 22, 28, 0, 30, 7, 33, 18, 29, 34, 2, 1, 17, 12, 11, 23, 14, 10, 32, 9, 5, 4, 16, 25, 20, 15, 31, 13, 24, 6, 26, 3, 27, 19 }

  25. {"-12","1-0","02-"}

    Returns: { 0, 2, 1 }

  26. {"-2110112121011121110101002102121011","0-010112001112111200211221210021121","12-11120122100211212100112121121010","111-0011001111110101111111101110022","2212-111012211110011221211100012110","11121-01121212211212112100221121111","110112-1000111112110111110122111210","0021111-121111110202210120221100101","12122121-11111222211102101101122112","020210201-0010121210001201111112200","1101012112-201112111001011102222100","21110011120-12100020110111111112122","112111111121-0101122011210222011111","1021101112102-010111222121000101121","11011011011112-10111111110112111111","011111110012211-1211021102111210020","1112210201021221-110112212111111101","10012010001211101-11022210011220121","121211121110011111-1111210100011111","2201102012120111211-211121101001112","10110110122120121210-11101101110101","212101112221101010111-1212022011012","1121101201121011001111-012012011102","20110111102101110001102-12111222221","201112102211101211102111-1211121120","0101122211112120022110001-012111211","10111010111102111211122102-10010000","210220002121021111222011111-1100102","0211210111010201112110011021-211121","12112111110121101022122011210-22010","000110120101121110121110011210-2111","1112011200001112121121101122100-112","21221101101111121111121010211211-01","101011121220101020112120012201112-1","1120212102201112111010012120121011-"}

    Returns: { 8, 5, 24, 16, 21, 2, 12, 29, 19, 4, 32, 34, 25, 23, 27, 33, 1, 31, 13, 15, 11, 10, 0, 28, 7, 6, 18, 17, 22, 14, 20, 30, 9, 26, 3 }

  27. {"-1220110102222001021121112021","1-121210101111111110202110121","01-21110112001121021100121200","000-1112221111010000121010121","2111-211121112212100110011111","10110-11100010101020121120112","111111-1101102022121121112110","2220111-210110121212001211211","11101110-02211101111012011110","221002212-2202221122110001002","0101121200-101012122200001221","01211211001-01112001101021101","012111211222-2120111110112011","0111020210110-011122121121101","21120121102112-02112011102101","210112002011012-2121211211121","1112010111002100-110110200111","21221210111211111-02010102101","010220011002101012-0001112211","1212221010011001202-012212010","10111112210111201222-02212111","022010021122101111212-2221120","1021211102212111221000-110112","11122110222211100110001-11122","110110111220102122111011-2111","0212120111110101200001210-211","21011110120121111102111110-12","002011111202122012111010111-2","1121102120111111111212001100-"}

    Returns: { 21, 20, 9, 12, 7, 15, 0, 23, 22, 6, 14, 4, 17, 24, 26, 27, 1, 19, 28, 13, 10, 2, 25, 8, 3, 18, 11, 5, 16 }

  28. {"-11212110022000112002111201102121210001011101010","1-1101011011121221201001120112010112021012112220","11-101000211001210212122100111202021122002121021","011-10112101000111111112120112110110101111112121","1221-2111110121010012122211111102112121021121102","01120-210111021111001210111011111100110211121012","122110-01201110121021121100211021110111010020112","1121112-1210001122201210222110112010122102222112","21201211-010111211112111010110101212111101001022","220111002-11111101121201201201202121210211220012","0112112111-0010202021021202220001112121022111111","01112112212-111021110211111220111100200202121012","212212121121-21201101111112220211221011101102201","2022001211110-1111101010111221021011010122002101","21121121112111-122002101102112020100011111200100","100121110102011-22001111011101012112002012101200","1011110012202100-0112012101122111121122011211120","01212110110111002-211111111122111111110220220211","200122201121112210-12121102211111012210121101200","2211120210012222111-1221101222101110221112201111","01010111011211010101-111211111002210201100112000","121110101020121121101-11111222010110201111021212","1201010112011121110011-2111111121112211010001022","11000212111112110111110-012110001110000021202120","011101102001111211110112-10101122011200010102121","2020112012211121212211111-1111002211120112222211","12221120210101011101111021-011001112012122212222","111112011000001111001011112-02200020000212210111","2111111112000012001010112112-1112121122020201012","00101112212221010010101211101-200212212120110210","120111211021022211112212122010-10111111201220200","0121210122211001111221020222121-1212221101111210","12020110101111201111021100120221-210121122211102","012111120111021111210111201210100-10222120111011","1101121110120121011111111110011111-0211011121110","20120222010211201102220211021010222-010112110202","221111111010222211000002012210101002-21101121111","2002011011021112011022122012011000110-1102111110","11011210121212100221111222020011101211-211110101","222120211020111220111122211021011121110-00011022","1121011221022011100121101101002200112212-1111121","10011120110010101210212120002211021010121-112202","111111202011120100101220100001010111111211-11010","2101000020102222102210222011210111010111111-0010","10101120121100211211011000021221111211211012-011","202112112212011010012021100120001210111210222-12","1000211101112222012121000101112121121120021111-0","22110000001011222121200211010222012012101022102-"}

    Returns: { 25, 19, 7, 12, 31, 4, 26, 30, 18, 39, 9, 35, 11, 17, 32, 10, 38, 45, 21, 40, 16, 1, 46, 2, 28, 47, 29, 33, 36, 22, 44, 8, 14, 41, 6, 34, 3, 43, 13, 5, 37, 24, 0, 15, 23, 42, 20, 27 }

  29. {"-0112121111111211212021111201112110011111112122","2-121112212210100121201020112011222202111021121","11-11021100101100212101202111012211201102120112","101-0112212212110112121212111210210101020012221","0112-100012201211011122122210212212212110101221","11211-11111111111210112101111220011102121020022","010121-1122111101112121211011122010111121111200","1010211-110112120221110012111212100022122022111","10102111-10120110112212111102020102121211210101","112111011-1010102102101110121220101100211011121","1020010221-110001010110111212121210110000020001","10100111121-11000112120111110020112101000012210","112121110111-2122111100212212212002012202101101","1210111022210-210100021222021110110011101102010","01110111112210-10211120112201112121110122111011","122111201222011-1211122210201121112001020121222","1222111220120221-101110100102012120111100012102","01012010112111001-12001110101021112111102102011","101111101211121121-1211221111111201001011101010","0100120100201211101-212210101100011110110111210","20111111011112111200-21001022110222022112010101","022001011210200012110-2111021211112211021212202","1111001201222120211010-101111110021121100211121","12001102111100101100211-21121221202121111021111","102102111111101121012120-1020121101101121112112","1200011012110002221211111-211000211101010001012","01110121110102001111221120-20212022211001011120","211111112011102222120010010-0101112101202001100","1011211101020111011101112122-011111101111211101","12200010201201112211101012012-11010102121010211","111110010000111010121110021211-2120111210002110","0102020022120201011221211201110-010020011001121","10000221110121111102012010211212-20121011112112","101111122211210101210102210111010-0201002112101","2012012201200210201100101100122222-002010122110","20010112111122121121201111011112102-02110111111","122212100212111211210100221222100222-0021021211","1011001012210121111201111111101211002-012201111","11121111002201121121121112201102222122-11012021","112010001122220022111021012210111211011-0021201","1102211011220102201201211210112110221012-211100","12121212022211112111200212220222111120220-12200","100120101101221012211110121211221101021011-2000","0120121021201011001120110111120100011101100-101","11100201112012201220101112111011111101201021-01","001000212021211021112201110221101211110222222-0","0101102111121210012210110022112101211111222112-"}

    Returns: { 41, 15, 36, 38, 1, 4, 12, 0, 3, 7, 46, 45, 21, 40, 5, 35, 14, 6, 23, 32, 24, 8, 20, 16, 39, 2, 26, 22, 18, 42, 34, 28, 29, 44, 33, 37, 9, 13, 27, 31, 25, 17, 30, 19, 11, 10, 43 }

  30. {"-11211101201201211120111120011101012112","1-0001112112111011121220211112111200112","12-200012211112022021022122112102221112","020-10102122210010101110120011101200200","1221-1111101212221101211110112111202111","11221-202121021200111121100111101012100","112110-21000111101112001120002111202011","2112120-1211212121000000212112101110211","10001011-121110101011011112111122001101","010111201-22100021022101120211011111010","2110202100-0111221111111111112111011111","10101121102-101101212010110200100110001","011002101111-12212210211000021111011201","2111101112121-1012110111011121121100112","11020110221101-100111212101122012110121","022200111201021-21102011112201011101210","1101022020021120-2202121122200100122202","11021211111100210-211112010221011012012","112111122210011100-21120212120011122111","0002211210111112210-0220211200210100112","21111102101022100112-112100021011211102","102101222112010211101-11211010210102110","1001102212111111010011-0102120000121000","12021112111211011022012-110222201210110","101111101111221112001011-10111021211211","0100120110112121011121211-0122010211000","21022220021221100201210222-111122112111","211211211010211000102210111-00122220020","1111112111120002200201001012-2001000110","10010100110211012122122010120-100110111","111111111211112212202020221121-01022112","2122121201121011211111220100222-1020201","11011111011211012112122112001211-111210","200002012121211112110110001021221-20110","1202212121111212010212011110210010-2112","02120002111212210002101211022202120-120","111011201212011002111121021211100111-20","1112121121122101211121211210111211100-2","00021211121110120010022212122101220220-"}

    Returns: { 2, 26, 30, 37, 4, 31, 18, 34, 16, 23, 38, 7, 35, 1, 32, 13, 10, 0, 17, 14, 27, 20, 24, 15, 19, 5, 21, 36, 33, 12, 25, 9, 6, 29, 8, 28, 3, 22, 11 }

  31. {"-220011121211021211220101110101011","0-12210110122220011111101011111111","01-1210122121011112112022020210011","201-001210200112102011011120202211","2002-01002012112111210121212101111","11122-0100011202110111202100202101","122112-221111002210112022110121002","1110210-01120222211101121012121211","01012202-1012200121221111112111111","120202111-200022112011101101201211","0110221120-11220012122100102210100","10021110121-1011111102101110121210","101201120211-111100110100121111200","2021102002021-01212121012221010111","00111220200112-1012010010110121011","121000002021111-112211201101121210","0211110011211021-02011120110121202","11121111011121112-1011021111111200","110012211001200001-111010111110122","0112011102111120221-11110111202101","01111112010210111111-2101121122110","210121011100212111110-022110001010","1122102111111220122112-01002211011","22010200122221120011202-0100120111","110110011121202121221012-202000000","1221011211111011111111210-10111000","11001211122100121111012221-2122110","212202200102112121111202020-102120","1100101110011211111012012111-10111","21122200121011000112021021021-0200","112010111121121111200112210022-112","2120112010100120001112212211101-21","11111221112121112202111122101210-0","111111011122211202012211222212012-"}

    Returns: { 33, 32, 6, 26, 7, 27, 22, 8, 30, 13, 2, 4, 23, 17, 20, 0, 31, 19, 9, 15, 1, 16, 10, 29, 3, 5, 25, 11, 24, 12, 28, 21, 18, 14 }

  32. {"-21111102022201101112","0-0200000111022202100","12-121101110111021202","101-21011101021111120","1200-1112122201111201","12111-112111021122201","121211-11220011101001","2221111-1120111012110","02110011-112111211122","211111011-11201001120","0112010011-2200111211","01210122010-022102211","021202211002-11010101","2010201112201-0200112","10111111112012-010102","102111120211202-10121","2201102112121211-0110","10111010111022222-000","110100211100111112-12","1220222100112120121-0","02021112021110012202-"}

    Returns: { 5, 19, 15, 8, 16, 0, 4, 7, 11, 20, 2, 13, 6, 3, 14, 17, 18, 9, 10, 12, 1 }

  33. {"-11112011122112220111","1-1212121111120112021","11-001112020220200221","102-10221202001211112","1121-1012120200002011","00121-000110222111211","211022-01012210111122","1010122-1102011211120","11010211-222102111220","112011210-01111211120","0102011202-2111220102","01202200010-002221101","110200021112-01222111","1002201121122-2201201","02212021011010-002210","010021101000002-11101","0121211111000221-1011","20210111112101011-210","120120110111100120-22","1001110000221212110-2","11101102220111211200-"}

    Returns: { 1, 0, 6, 8, 13, 3, 10, 12, 20, 2, 9, 7, 5, 16, 17, 18, 4, 14, 19, 11, 15 }

  34. {"-20","0-1","21-"}

    Returns: { 2, 0, 1 }

  35. {"-1011222201111212001","1-011112111102111100","22-22111011111021100","110-1111012001121121","1101-020101110211101","01112-12010110020211","011101-1022021021110","0011201-212112111211","01221220-01210210100","211121012-1012101221","1110120011-122222200","11121121021-11102010","121211011101-0121211","1011221020012-010202","01210221010112-11121","110010011202011-2121","0111121121001210-100","21111010100200111-11","222021112021120021-1","1221112121221011211-"}

    Returns: { 19, 18, 9, 0, 10, 7, 14, 12, 2, 11, 8, 3, 13, 6, 1, 15, 5, 16, 17, 4 }

  36. {"-011210002101112022102111111121212021111","2-10101202111221112122111220100201112212","11-1011221102201210011121210011101110211","121-012021200121001112121001000211120112","0122-01112110112011212011110110111012110","12112-2122211101012111001210120112212121","211010-120102100111011201111011000121112","2002111-22222101120112012101121210111100","22001000-1121202021011100102112111111120","001100201-210211021111012212111002002001","1110101010-21010011210202001102111212111","21221120010-1111220011002101000011020111","110221001211-022011010011110011112211101","1001111100212-21021021012100012211112211","10201222211100-0011220021112111222210011","011101210121012-210021221111211220011011","2102221122202220-21100121211101010011001","01121110001010110-2120211110012221110112","002110121112111210-011112111010011111101","1121012121022202112-11010220112011012010","20111111111110002011-1101111200100021010","001001101121212122111-012011111111111211","1111220212022220101212-02010112210200221","11001221212211000111212-1110211221120112","111111102000101111021001-111201012020120","1002101110211111011012211-10001111011220","10121112212212111110111111-0120011111111","122122110011220112121122122-000111202210","1122112111122210122101100212-21111211111","02121010112211112111211122020-0111011110","121222110102101110202101112212-101100212","0010112012121000202211002121111-01002201","12211121121111001011211011111122-2211101","011110221011010221112121011111110-101220","2111201112020102211221012210021201-21101","01101101121011111111012001121122120-1121","102200111002102112101122211011201111-012","1001111112111022211220011010110010112-01","11111012021121112121110100111112202012-2","101021022111111110122110221212011211010-"}

    Returns: { 28, 27, 5, 1, 22, 23, 32, 34, 38, 7, 30, 14, 0, 16, 19, 26, 39, 15, 29, 21, 36, 13, 35, 2, 33, 3, 4, 8, 17, 12, 18, 31, 37, 25, 10, 9, 6, 11, 24, 20 }

  37. {"-122110110100102102112112201222121121","1-10112211221021122101211110112021210","01-2012210212111111211221101110112111","020-121211211111210111022112200111121","1121-21101210101001110101011012221222","11100-1112220111110221122112220121021","200111-111102100211012212202012102201","1000111-11101100001011121112022002221","11112111-2101110111210121120211111111","212110110-112122222002212011111111000","1000001111-01110110002022112100111211","20111022212-1022110202100211102122112","210122011011-101121212110200011220222","1211111111121-12100121001012101111111","20112122101021-1101111211211101111001","011111222020101-021121010020110121110","1110210210111112-01100112120110200021","20112112101102202-0220121111100110122","001212111022121112-101212221122101111","1101102202200111101-12121111001112101","12111011122210102021-1110111111110111","011121012000011122101-220001110111120","1002110110211202110110-12111112211121","11002010010212111010101-1020200111111","011010011002211201012201-211111110121","0111210112100202110112120-21111011112","21211121011121100101121010-2021210120","121010002101201221111112110-121021220","0110202201112111111211101121-12122100","01121010112212211202111211001-0101111","002202001120111222011202111102-010111","1211011211110111011111011202112-12101","00110022111001102121111111100211-0010","110111001110211122102111212101202-100","1011020012010121211111111110111121-10","01100020121101210012100101002112121-0","121101111210011210111211102221112222-"}

    Returns: { 18, 11, 36, 5, 0, 1, 2, 3, 9, 12, 28, 8, 17, 6, 27, 22, 26, 31, 14, 4, 20, 25, 29, 13, 33, 30, 19, 34, 24, 15, 16, 21, 7, 35, 32, 23, 10 }

  38. {"-1101221121101121100101201020011211120201111011222","1-102211101110121110020121220001221100011222001111","11-10121211110020220101011212211211121011202020111","221-1002211120112011021011112022011101110102211101","1021-201120200021111021110222011111121021002011112","00120-01121212111100111221112110112210012101120121","010222-0110121121112121102112111220110100110011011","1110112-202110121121111102111101111201110212112020","11001110-20211011112111100001211200111211212121102","021100120-1002102110002110001011211121111210012022","1111212021-111122222110102201110110121111011000100","11110011021-12212110111211112111111111111212221110","211021011211-1111112221102012000020020012110011222","1222201210101-212010021110101002221111221121212101","11212111211010-12012101012210001122220010121120111","000101001201111-1010122011022000012120112201212121","1120111110001001-120112111112121210020101001021111","11021111110112221-01011212101212121010111012120101","210112101101111102-1001111112111101100111210101111","2221120102020202211-101210111211112011111210021011","12122111121102111221-00000112112222222211001201021","202001011211002011222-1021012111012121110111112000","1211111110211110011121-011210212101120111112111021","01221011111011221010222-11110112002111002220102100","201110222121211111112011-1100110112011201111001101","1111210022010201101221111-021002012111111111110201","20010111220121021111120112-11211110210122120201110","001101112221121012111111201-1101100120112210211211","2200000111100120010100222111-010021111121210122111","22022111021122221010110112012-12111102101112001102","121011121111222201111111121211-0111120121211011012","1110121111212012101101002011202-122112102020201100","00021101001120120111021212112111-10022021111212112","101111012111000110210122111201101-2101102110000201","1111102121212100211000100022111020-112210111211122","11111010111121012212011121011111211-00111112111222","020201121001010001210001111012010212-0121201110101","2211122111112122222101211122102001022-101111210210","02212211011120211111011201111111210111-12020110010","211101211111101121111112210102020211021-0021111110","1112102211110120111112101100111010211102-122120012","10012110002011102200211011100102111101221-20112000","102222111111100221112110110111101111210000-0101020","1000012002102111102211021122201212101121022-112002","22202121122020102112011121001220020110111111-01211","120110110120110100202112212102121211111101212-1111","1121121010211020121110101211011102112221201011-222","01111122121101111112222110101121101010212222010-01","011210102021021012110202221112121200211112021102-1","0111011200220111111112121121100201001222022011011-"}

    Returns: { 37, 20, 30, 13, 11, 29, 46, 48, 35, 47, 44, 19, 7, 26, 45, 43, 2, 34, 17, 5, 22, 32, 27, 14, 39, 3, 40, 4, 0, 12, 38, 23, 31, 49, 6, 10, 1, 24, 8, 25, 21, 28, 42, 15, 18, 16, 9, 41, 33, 36 }

  39. {"-02111110211112111020211212101","2-2010001011001111120111101122","00-011101110012221010111101121","122-20110111001212221112111110","1110-0211122111111111020011021","12122-002220101111101202121112","121102-20200011001210120022112","1221120-0122212111200110100212","21121022-101001021121112021211","021110011-10211012112111000021","1111002021-1020021102112011001","11210220121-210121021001021200","122211202020-00121120102101120","1212121121012-0102111120111121","01011110112222-211201211001101","110011212221110-22102120101101","1101112101000210-2002200010211","11101111101110100-111112010011","212011001112110121-01201112122","0010121201200122212-1111112212","22211122100121100111-100121201","011120111112110101011-12111011","1111020111122010212121-1112112","11102022010102122011201-111112","011121212222112122111111-12101","1221100202102122111101111-0000","01111102121111112200110102-101","111121100220111102100211121-00","2001011110220022110121112222-1","10121000111221111100110012121-"}

    Returns: { 24, 5, 22, 19, 13, 28, 7, 8, 3, 0, 18, 23, 20, 12, 15, 14, 11, 6, 4, 25, 27, 26, 21, 29, 1, 10, 9, 2, 16, 17 }

  40. {"-011011121111211222121110001111","2-21110110112222122121221111110","10-2102101012122101102110211101","110-102102211112120222120202121","2111-00111011211121111110111112","11222-1211111021111012100111100","120021-101021210101120210221110","1111101-01111201210111210221010","01221122-1011112112122101110122","121011111-011101211222102102112","1120212122-11001100110210000112","11111101111-1120100001121011100","100111111111-012011101111000022","0011020011212-01121111112212010","10011012122012-1221121012121120","100011210112011-210111022021220","0111111010112100-11112112111012","00200121112210011-2102122220212","001211120122111210-112112022222","1110121110121111111-11212110111","00201101001221011211-1211111002","110010210021111100011-100210020","1011110011011122111001-10012202","10101211221011101011121-1111120","212222221021100000001221-011221","2100110011222012102110212-10211","21121100122121001001111111-1100","111011112021201112021201121-010","1111111211112210200122010012-01","11201211011201001101202001212-0","121102220002022200010202112212-"}

    Returns: { 1, 18, 8, 3, 14, 17, 9, 24, 30, 25, 0, 19, 4, 5, 28, 27, 6, 13, 15, 23, 2, 7, 16, 10, 29, 26, 20, 22, 12, 11, 21 }

  41. {"-21101021112111000112121001110102201210202221100","0-2111100112211102002121102001212112112211202210","10-110101112121112201101111101011211002101112102","111-01112022002000111001122012112120011221001002","2112-1112100022022222111112212100100011202021122","11211-100001200011121000022101122111021120110211","211111-10011112112202122012011011222102221101200","0221121-0020120110221111100102111201010112101211","12100222-020222120111011112212021222110121110011","111212222-21212001010111220121012111111112010112","1110221000-1101112111112110201011110001111111112","00002112211-010121111201022111212010112111021021","101220110012-12120122021221121020122011011121202","1102021001211-1211121200011221121121110121001210","11100202001201-120212111111212200211101111201211","211222111211101-11211220200110121221121011122211","2212011102100101-0212000121101020221211021021001","20020102210121212-211211220002222011101112121011","120101001211110000-11121122010121200021122101212","1221002011110011111-0210021022111122111002101122","00110101121101010112-110101121020121212221102211","111212112110201020101-02122022120101212111011001","0022120111120210210112-2111211120012111001012111","11111201110112122112200-011021210010111111011002","211112211012021010121112-12010111110112122110112","2210101210100112000020111-1012101101100120111201","10100002022011121201101101-122200101021102122002","121201210101100112221202221-01210001002001001121","1221121210210011221000101102-1210111111000120010","21100110011111021020101120011-211122111111010111","102111212220210120112110110000-12111201111100212","2111201101110020000100011221111-2012011111111102","00102011101021212011222211222100-022121010222202","010111000112110002011122111211122-11120110101111","2110210201110010012002111222101101-2122220011221","10122101012201111120110221111010010-102111221112","012222121121211101210011112211021111-21111111011","1121102111211120120111111202112100020-0111011101","20011102211012111111001102101111120012-011122211","001001011111211221120121111221112101112-10011010","2120200101111011010201210022211111011111-2101121","01110210101111111000111102012111222111120-120001","001221111212120121111222111212110120121211-00111","0212012211100220002221111102012102101101202-2222","10011211221111101111010121012221011111011220-111","101210002112000022010212102121010101210212101-12","2122012111102111211012121220111221011211021011-0","22000121100102111100111001012100011011121110102-"}

    Returns: { 15, 42, 8, 4, 46, 36, 17, 32, 9, 12, 6, 43, 1, 24, 34, 13, 14, 22, 21, 44, 11, 35, 30, 19, 20, 38, 0, 39, 40, 7, 37, 18, 27, 16, 45, 2, 23, 33, 26, 3, 28, 29, 41, 5, 10, 31, 25, 47 }

  42. {"-012110110122010112221010211001212211100011111","2-11102001102122120211101002112112112000211221","11-1212201012011111210101021111021112111122212","011-101022102002202110112111111121110211101011","1101-20211120122102111112102111110012012202212","12120-2222221002021120112101011210121010102210","200120-211220011112111112221011001011111021012","1202000-02211102121111102110112100111121112121","12201012-1222102112122101011102121012102111110","211010101-100002121011102222202101000001121221","1121100001-11121210200111101022111122110100110","02120001021-0201211210102010101200211211212101","000021210212-101112121010101121112121110221121","2122122112101-12111011111111100011000012022010","10120212220221-1020011122121220111202100010100","201000100011101-110112021011212101121211021210","1110121111001121-11112010011211111001011210200","10122010101111011-1222221211111112120101122120","021001010121012211-121111021201010220111010011","0001111112001221101-10102111111111102111111210","01111011012101111001-2111011111221020121001111","112212110122111000120-110211111201202112101020","2111111111112112201111-10201010102212012121100","12211112221211001012111-1111211210110111111211","211000001010210121101221-100202112022121112100","0221110120121112202120011-10101201112022021202","12012201102121011101112121-1022212001020111111","101101121012111111111111221-011101121011220112","2111122110211100010111200122-01121021201211202","21111111220202011121111122012-0102211201100111","101111100001122011111121010112-221111110110102","0121102111101211112100101001110-00111022211211","11001122021211121111022112120202-2012001000112","001122121112011110211102010110120-112111112112","0111212122101201210120012121201121-21112202120","11111011120102202002021101200111110-1011002101","100201110201120112202002001111110011-022112010","1210221112101210211111211222001221122-10011011","22111110221111211211011100012210211101-1211201","221102110121202111111001102111201101021-021001","2011012111100222012121111210011021021202-10221","11022201102100101011220110101211212211101-1201","110100101120102120211111011212212000011121-000","1002002110111210012012101011011011112202002-11","10111110101201212011102122112121110211220221-1","110102012121122222121221201001010021211111211-"}

    Returns: { 34, 45, 37, 23, 8, 2, 4, 17, 44, 5, 29, 38, 1, 25, 40, 26, 32, 28, 12, 14, 21, 7, 22, 33, 27, 6, 41, 13, 39, 3, 0, 11, 24, 9, 19, 30, 31, 18, 20, 10, 15, 42, 16, 36, 43, 35 }

  43. {"-100110222002","1-12220111101","21-2111121022","200-011102011","1012-21002212","10110-0122112","221112-011102","0111212-20022","01022010-0001","011000122-012","2122011222-10","22011120211-0","010100001022-"}

    Returns: { 10, 2, 4, 6, 7, 11, 1, 5, 0, 9, 3, 12, 8 }

  44. {"-1122112","1-111021","11-10211","011-0110","0122-110","12011-10","101111-1","0112221-"}

    Returns: { 0, 7, 1, 2, 4, 6, 5, 3 }

  45. {"-1212211111101","1-112112211111","01-21011120012","110-2002021121","0010-221112201","01220-21111022","111200-1121112","1010111-011212","10121112-12122","110011011-0111","1121011102-220","11210210110-11","211020110101-1","1101100001211-"}

    Returns: { 8, 1, 0, 5, 10, 6, 4, 3, 11, 7, 2, 12, 13, 9 }

  46. {"-11011011122200212102011211201101100211","1-1211111011021111111010011111010102111","11-122211120120120011100120211020111121","201-02201212010211121221001001121210112","1102-1100111211201100211101201011111110","11001-212210001201122221122111110101112","210010-11012111000111101102020212101100","1112211-1021111200120110122021122120120","11112011-101200100111222011111121112201","121010221-22120122101221122210122112220","0101111020-0202210100120111211202110112","01201201102-211121010210110101122101212","021202110100-21111010021121110012112012","2001121120210-1212111220022120221102111","21221111220111-211211111111122020111210","011000201101100-00002212111021011222111","1101222220101112-0100100121101021112212","01211122202110122-211121112012220121111","112111111112210210-21012121001111222001","2110201012211112210-0221112211111002110","01112012112221102112-021001021012111010","221000110010201011202-11211010120112221","1120102100010011201001-1112001122122102","12211112012212102101111-221010101122021","021211112111121111112010-22012210110111","1102202010110011010121100-1012001011100","11211000101210111010110101-101202002020","010201221001111212202222221-11111101201","2112210011121000212101211121-0202201011","11111121121122011011121200112-112101111","122121011101202220112111020101-11121222","2100111000201001001110021221211-2200011","12211200100001211211020121010010-202102","111011111111111011021111122101100-12111","2211122011121210100211001122220221-1021","20121112002100100100100021011112001-100","011111110010210101212012112021021121-11","1101112020111111112110201202110121021-2","11102022120001210112210112211101011210-"}

    Returns: { 9, 17, 14, 34, 30, 13, 27, 23, 7, 29, 24, 19, 5, 18, 3, 28, 2, 37, 16, 20, 11, 8, 38, 0, 36, 21, 12, 33, 10, 32, 22, 4, 1, 15, 31, 6, 26, 35, 25 }

  47. {"-020101121110120021221111111","2-11111011021101111201010210","01-1200120222211210210212111","211-110022100011111101122101","1101-02112200102211020120111","21212-0101021121011222012202","112202-111102010010111121200","1212111-10111201200011211110","01001211-0200102100011101122","112001122-121101210121111212","1201021101-00020221201211012","10022021202-0001001120122100","210221012122-101220221211202","1102112011221-12021111211101","02112012220221-1112020110122","211101210121101-112101111022","2101022010020211-11002012102","01111112210200111-2011001011","112111222211210010-210120211","0001201221010121220-12110101","02120011102001022111-2110222","112120111112112101200-201111","1201121011010011221110-22102","11100101211011111201120-1121","120020111110112101222101-211","1011100110210112120101110-12","11121221011222002112012011-0","121110220002010001110101102-"}

    Returns: { 12, 5, 14, 18, 2, 9, 26, 13, 15, 24, 21, 20, 0, 22, 7, 4, 10, 6, 3, 23, 19, 16, 1, 11, 17, 25, 27, 8 }

  48. {"-21011122011011","0-0102110111110","12-022101221210","212-11122211201","1201-2010101211","10010-102112201","111121-11112110","0120121-1121120","02102011-111011","210011111-01112","1101211012-1112","11111001111-211","210000112110-11","1112121011111-2","12211122100110-"}

    Returns: { 3, 2, 13, 6, 10, 7, 14, 0, 9, 11, 4, 5, 8, 12, 1 }

  49. {"-2102112112101111002001120112112210201211202","0-011101100202102012220211211102011101220101","12-20111112201211122111011200112021101102000","210-1101011111110010110210101222100111121201","0121-022110011012002111111121101101001020102","11112-22100210222221111102112210212012202110","121200-2010120110111111100211010220100010111","0111000-011201002000000111211212212001111210","11121122-20020121010101111001110112120122112","121112110-0110110101010100122101111211201011","0201222122-112221111111001101011202201120001","10012010211-12201101121022001110211120111011","222111020111-2121120121122111111101112101210","1011122122000-212211111121201111112210222020","11012012110010-11102100010211101100102012111","121110120102011-1100120211010111121000022101","1012002012111011-011211212011101221001011101","22122012211110112-11210202112100211011221100","210120121212012211-0221121211000110211112112","0002011221112102112-101200011121110200102200","20111112121111110001-10012220121110120112122","201111122110012011021-1112110101122011201021","1212111212111122121121-001112202101010022211","10201111112211200010212-11211121101000101111","011112211220001112021121-1111211111100001001","2112102112100121001200111-122202111111121211","10011100211210022102011011-11111010112100102","112201112022121111110111101-1000111120111100","0121101110111112101122011011-101210222121111","11101020112111111121110100121-11000020111100","121021111211112122200220121221-1101011002110","0000122021121111122111011012111-121202111100","02211000110011110011111111210211-11100111211","110221011121212001111022111112201-2212111010","2112102001011021112220111121221110-211112121","01112212100110122200122211110220100-21120101","222121220120112221120112211000122110-2112100","1111102121120202111221222102021020110-000211","00112021101110222011102121111121111112-12011","102002110201201010121202202101211110121-0221","1201202101211000110001011121110111020202-110","01201110122202111110120120111111021110201-21","222221111121101222120011212212121102211010-1","0121021201112211120201111102122212112111211-"}

    Returns: { 42, 5, 43, 36, 13, 22, 34, 12, 18, 17, 33, 30, 25, 37, 0, 10, 20, 38, 28, 35, 8, 41, 31, 39, 2, 21, 1, 27, 11, 24, 23, 16, 19, 3, 32, 9, 4, 15, 26, 40, 29, 6, 7, 14 }

  50. {"-0220122011121101101000","2-100102002121111101202","01-20202110220101101021","020-0110121201101111111","2222-221121101121210021","11010-01001021211202121","022102-2210011112011101","0002110-001111100122011","22111202-02011120022121","121002122-2111112112210","1021112100-110011101011","11001221211-22112101111","000220111110-2102011121","1121111111200-011021112","11111011112112-00111110","212201120111212-1200210","1111110220100121-211121","11110021211122100-21112","222112100122101210-1120","1111201000111112111-000","20212112102111101112-02","220100210111011101022-2","2011111112111022102200-"}

    Returns: { 4, 9, 8, 18, 11, 15, 20, 17, 22, 16, 13, 6, 21, 1, 12, 14, 5, 2, 3, 0, 19, 10, 7 }

  51. {"-1022021110120111000","1-120101221111110011","21-21211110200200112","000-1121111110121102","0211-002101111112101","21012-21111021110112","021020-1201022111012","1111011-101101221112","10111101-01011021101","101121222-1112001110","2121111111-022002211","11011221212-01122100","012110021102-1020021","2122110110011-110010","11011110222121-12022","112011100220011-2100","1221021111002200-201","22111121110122210-11","211221112112010221-2","2100100012121202110-"}

    Returns: { 18, 17, 14, 10, 5, 11, 2, 9, 16, 7, 6, 1, 4, 3, 12, 19, 15, 0, 13, 8 }

  52. {"-11111211021102102211001","1-2210112211011221111001","10-211211111020011110100","100-02211100111112110211","1112-0101111202120200001","12102-101002101010021021","010011-20201201111011021","1111220-0200101221111121","10111122-111102101212120","201112001-12201210011111","0112122211-2220010112002","11121012100-102011101011","122101011001-21001012120","2101222222020-2102110120","01210111012010-011110211","102112101022212-20101112","2011011021112210-2211000","01102211122110120-112122","011102210211211101-00212","1111201111121112112-0222","11222111010102211022-112","221022211122110121001-10","2221200001210011201011-0","11211111210122102000022-"}

    Returns: { 19, 13, 17, 20, 10, 21, 15, 1, 8, 7, 23, 0, 18, 16, 9, 3, 22, 12, 4, 6, 2, 14, 11, 5 }

  53. {"-021011101101110002110202212121111101022111","2-20121020012110101212110201201121121201102","00-1212021121011210110210120020201110011010","121-201101111110021000110201002022002110201","2100-21111120102102000101121111122000222121","10120-1110202110202112210211012121011112021","110111-221110002011111100010201100111121110","1221110-00121110121010111122121221121101121","20021102-1120112111021111012021110122101112","121112121-111101110111010002121011121110220","1211101111-22002110221121111110021122201010","21010210010-1212121001001101100111021121221","101120212101-210211112220212101022011120111","1121112111200-11112011010210201211110001111","11112121122111-1212112111011102111111111111","221202020100211-211101200221210110022001112","2102102111110100-21022201201121120102011011","22102210111011110-1111121210110111102100101","012100111221100111-100011012121121111121100","1012211221021211211-10111210112212012211110","11122111010211120121-2210211012102110121112","202220121111010101220-012001011102210111212","0101101112120210012102-00101112022112101222","21112121110201122011112-1121112212110111012","022212211211221211112021-101201112220222110","0010102122110020002002111-11110222101210120","12020110121211102111122021-1011110201102201","012111200011021112021111111-111211112012122","1022120121111010111122110121-22101210110121","02021120001222210101111121110-1120221021200","112010111122110212100100121101-011120100111","1102111012212011111011201010112-10211121100","10200020110101110101220110112011-1010121112","111001212111011221100000002112121-110101120","1112221111122112111210110101001021-02111122","20122110000011102211111102211001112-0102122","112021110101121000102202211021212202-010111","2021011111011212211011110012121111112-10110","02110102212002121201012101211020021211-0101","011200111211211112111111020021211110222-102","1120121110201111211110021101101111111111-21","12120010101011111221110110200212100011220-1","102111210221111011220000221012120200121011-"}

    Returns: { 24, 19, 23, 14, 20, 7, 34, 12, 28, 39, 27, 8, 1, 10, 5, 15, 26, 29, 4, 37, 21, 36, 22, 42, 38, 40, 9, 35, 16, 0, 31, 17, 13, 11, 41, 18, 25, 30, 33, 2, 3, 32, 6 }

  54. {"-1112012211201211101220122122111","1-110111112022111110221010011100","11-01210111112211110021012101100","112-2210210111121121111100211120","0210-200120221111111111212022002","21000-21110200120121110110012211","111120-0121111120011210202112000","0122212-120112021120120012110112","01101111-12012021110001011001201","111101001-1111021112211211112222","1012221201-211011222112010112221","02110011210-10022020210110012200","201102111111-1111120220002110212","1001121001121-110012221111021120","01011112222211-11202111020110120","111010000010111-2121101012112112","1111122111101210-011111011201112","11111121110212012-01121201111101","211010101100012012-1111111110121","1221111220022001111-000002121012","00211101201000111112-00012110202","000111102111001210122-2110121110","2111122211022111111220-011111001","12210102202121222012212-21221100","011211211111210112121110-0122111","0202020011220120111002112-120112","12102211211212110111111011-02221","012101112111101121101010002-2111","0111000210002120112121110200-210","11112021000001111112012111010-01","122021212002100112012122110112-1","1222012010120220011002121011211-"}

    Returns: { 23, 10, 0, 26, 7, 9, 30, 22, 24, 3, 4, 14, 31, 17, 12, 25, 16, 13, 19, 6, 2, 1, 5, 27, 21, 15, 18, 28, 11, 29, 20, 8 }

  55. {"-11122110120110221100111","1-0000020211212111022212","12-021010201110021011101","122-11011211122100112202","0201-1001021102221102222","02111-121012221002111202","122221-02210101202121121","1011202-0211102221111112","22211102-011210101221111","100022002-21011110111111","0121011110-0122010111100","21111021112-112122101220","101110110211-11111111012","1110202211011-1121222110","20200110210011-020211021","012102001121112-12120111","0102022021101001-1011120","11121001122011201-021221","122111110111100122-21111","2011210101121010100-0100","20100111111110121112-021","101000111110212110112-11","1122020111201101001201-2","10100010112202112112110-"}

    Returns: { 6, 11, 3, 5, 7, 13, 8, 4, 18, 17, 1, 15, 0, 20, 22, 12, 23, 14, 21, 9, 2, 16, 10, 19 }

  56. {"-100100","1-01220","22-2012","210-101","1021-02","20122-2","220100-"}

    Returns: { 2, 5, 1, 4, 3, 6, 0 }

  57. { "-0012100111022021112221111112212011002111220202100", "2-120022101220102010202110201211001211121012110012", "21-11210112202111200011012211012210111101221210002", "101-0000120102221111000201200211020101222010210002", "0212-212010210010210000221202202010001210112210222", "12020-22212021021111021112021210120012000210121210", "201210-1101011102002022010021112211201122211022210", "2022001-010221012221222020212210121100202201210100", "11112012-02000202122010002002121211100100110110001", "121011212-0101200210112101202122201022101211102211", "1102201202-000011112021112222202101212010111012100", "20010220212-01202122012100120020200010012010210200", "002210102222-2011102100201102020000121011012121012", "0200211121210-000100011120101211102211221112110101", "21102212002022-10022001011022122202020212020112222", "021010212212121-2221012012201011002202000220122010", "1011210002101220-222111002002210111112212201210010", "12010120101111200-00122022011220112101201021202110", "112111200110220002-1220210102100212000012110012122", "0221210102000201021-102201012200002210022211112110", "00222220212212221101-20110100101102112112010121100", "021220001101212110020-0121211020102111021122002211", "1012210020102110102022-111222010022020012111111012", "11200122211101222200111-20112201220101111112201102", "111201102212201120121010-2120121201221211102011121", "1201102201021210002121120-112022211002202112212102", "10000220200111202212100111-10002011201121022112210", "121220012200220221212101011-1100110001101210212122", "0112011000020101010021002021-211001022212221001111", "00200010110220120010122012210-12022210210101122022", "111121110020010110222012002211-2112120212221210212", "0101020210022101222212211002100-122201101020012222", "22022101001021021102112000212211-00100122102021022", "121010101222222211122200211120102-1002212210221222", "1122221111122000100000021112100021-022022202001001", "20112201120210201120112102022010122-11101021210101", "211221222011010212211102022201022201-1221221121122", "0111101220021120012201211011022120011-002121000101", "11100210112220020022122100110001102102-12002122011", "102012022211101212101011120211120102021-1010001201", "1110220021201102010001011011020100011001-020221210", "02021000101221200210211111200102100201222-00200010", "010111121111110020111011210102002120002102-0022101", "2012021121120022112120100002111202011102222-101202", "01000120112011110021121020102102202012120021-11100", "211110011211011012110212111120110021020202021-1122", "0222210220021200200010111000102011121201120111-200", "12220001201021022111102111011200202111200210110-01", "212201122122120111012112021010100022021211222022-2", "2000022211220102220221001020100000110111221020210-" }

    Returns: { 36, 33, 48, 14, 30, 24, 25, 23, 9, 7, 43, 15, 5, 31, 2, 0, 27, 6, 20, 45, 35, 10, 4, 1, 21, 16, 32, 22, 29, 17, 39, 18, 19, 38, 47, 26, 12, 13, 49, 34, 46, 37, 44, 11, 42, 28, 41, 3, 8, 40 }

  58. { "-1102121", "1-010200", "12-00100", "212-2201", "0220-011", "10102-11", "022211-0", "1221112-" }

    Returns: { 3, 7, 0, 6, 5, 4, 1, 2 }


This problem statement is the exclusive and proprietary property of TopCoder, Inc. Any unauthorized use or reproduction of this information without the prior written consent of TopCoder, Inc. is strictly prohibited. (c)2024, TopCoder, Inc. All rights reserved.
This problem was used for: