Problem Statement
You are a spectator at a long jump competition. N contestants compete in the event. The contestants wear bibs with numbers 0 through N-1.
The competition consists of three rounds. In each round each contestant gets one attempt to jump as far as they can. To make the competition more dramatic for spectators, the order in which the contestants jump may change from round to round. More precisely, before each round the contestants are ordered from the currently-worst to the currently-best one, and that is the order in which they will jump.
In order to compare which contestant is better, we first compare their best jump. In case of a tie, we look at their second best jump, and so on. If two contestants have exactly the same collection of jump lengths, the one with the smaller bib number is better. (Thus, before the first round of the competition contestant 0 is the best contestant. This means that in the first round they always jump in the order N-1, N-2, ..., 1, 0.)
You have observed the whole competition and you wrote down all 3*N jump lengths in the order in which the contestants made them.
You are given these lengths in the
What are the results of the competition?
Compute and return a
Definition
- Class:
- LongJumpCompetition
- Method:
- recoverStandings
- Parameters:
- int[]
- Returns:
- int[]
- Method signature:
- int[] recoverStandings(int[] jumpLengths)
- (be sure your method is public)
Notes
- The number N is not given explicitly. You can determine it by looking at the number of elements in jumpLengths and dividing it by 3.
Constraints
- N will be between 1 and 50, inclusive.
- jumpLengths will have exactly 3*N elements.
- Each element of jumpLengths will be between 0 and 1000, inclusive.
Examples
{847, 833, 829}
Returns: {0 }
This test case has N = 1. In other words, there is a single competitor (with bib number 0). That competitor makes three jumps and then wins the contest.
{100, 120, 110, 130, 120, 111, 147, 92, 0}
Returns: {0, 2, 1 }
We see that jumpLengths contains nine jumps, so we have N = 3 contestants. Here's the full explanation of what happens during the contest: Before the first round nobody has made any jumps yet. Thus, the order from worst to best is determined purely by the contestants' bib numbers. In the first round they are going to jump in the order {2, 1, 0}. What this means is that contestant 2's jump had length 100, then contestant 1's jump had length 120, and finally contestant 0's jump measured 110. Before the second round we determine a new order for the contestants. Currently, contestant 2 is the worst, then 0, and contestant 1 leads the contest with the currently longest jump. Thus, in the second round they will jump in the order {2, 0, 1}. Second round results come in: contestant 2's second jump measures 130, then we see contestant 0's second jump to 120, and contestant 1 jumps only to the 111 mark. Before the third round we again need to determine the current standings. The clear leader is contestant 2, their longest jump length is 130. Contestants 0 and 1 have the same longest jump: 120. Thus, we look at their second longest jump to see that contestant 1 should be higher in the standings. Hence, the order from worst to best in which they will jump in the third round is {0, 1, 2}. In the third round, contestant 0 makes the longest jump of the contest. The other two jumps are then too short to change anything. Thus, in the end contestant 0 wins, contestant 2 is second, and contestant 1 is third. This order is what we return: {0, 2, 1}.
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Returns: {0, 1, 2, 3 }
There are four contestants, each makes three very unsuccessful jumps. As their jump lengths are exactly the same, their order is always determined only by the numbers they wear. Thus, in the end contestant 0 is the winner, followed by 1, 2, and 3.
{850, 840, 841, 850, 850, 837}
Returns: {1, 0 }
The following happened during the contest: Contestant 1 jumped 850. Contestant 0 jumped 840. Contestant 0 jumped 841. Contestant 1 jumped 850. Contestant 0 jumped 850. Contestant 1 jumped 837. In the end, contestant 1 is the winner. Both contestants have the same length of the longest jump (850). Contestant 1 has a better second-longest jump (also 850) than contestant 0 (only 841).
{621,331,816,646,576,563,716,452,694,323,379,772,467,678,515,599,611,638,592,555,550,313,639,803,609,408,597,783,802,868,612,580,529,781,781,409,500,612,446,464,750,660,437,335,814,300,442,541,552,366,468,714,789,774,469,719,362,337,822,502,430,782,555,363,737,796,510,526,605,315,757,667,462,762,537,326,618,669,323,292,320,692,691,527,368,683,827,459,570,616,742,433,828,339,518,556,861,678,530,446,756,644,327,808,592,651,812,548,554,759,867,476,324,611,548,551,269,804,791,286,551,485,612,322,504,802,856,559,410,633,862,508,719,407,270,624,751,801,373,344,721,756,720,364,666,825,516}
Returns: {19, 17, 43, 46, 42, 21, 40, 2, 4, 1, 38, 48, 25, 39, 20, 47, 16, 45, 9, 15, 14, 5, 37, 30, 36, 6, 8, 34, 23, 31, 26, 35, 32, 44, 7, 10, 41, 24, 18, 11, 0, 33, 22, 12, 29, 28, 3, 27, 13 }
{275,264,243,276,240,289,255,223,248,257,244,262,275,239,270,222,242,233,291,260,226,239,269,285,253,281,264,287,260,240,271,231,228,250,276,232,240,276,247,263,261,233,265,282,270,281,251,226,254,291,291,241,243,252,255,249,259,279,270,261,285,281,289,227,246,257,280,246,247,250,280,242,267,249,254,278,269,225,260,232,281,271,272,265,231,251,280,254,288,272,225,245,229}
Returns: {12, 4, 29, 25, 23, 3, 7, 6, 5, 30, 21, 11, 20, 8, 26, 13, 27, 18, 0, 16, 24, 19, 22, 14, 28, 2, 9, 10, 1, 17, 15 }
{667,698,696,591,591,808,580,717,551,585,739,562,750,563,421,606,596,593,789,728,473,471,622,598,754,705,441,459,565,468}
Returns: {4, 2, 7, 0, 1, 8, 9, 6, 5, 3 }
{525,731,745,339,594,424,437,362,473}
Returns: {0, 1, 2 }
{225,133,95,71,116,106,173,146,208,125,212,64,107,99,222,204,79,84,97,162,178,217,184,202,161,67,162,180,179,71,125,227,170,197,203,189,150,72,185,145,111,146,211,182,91,71,96,73,178,226,111,66,114,187,108,215,113,194,132,117,149,219,120,88,78,138,143,63,152,77,204,102,163,101,219,215,197,86,100,72,185,105,67,145,147,167,222,227,207,129,89,207,77,161,163,170,110,196,174,129,182,161,197,111,157,129,206,217,222,69,77,71,82,228,130,154,221,187,86,79,160,88,179,140,93,194,148,83,133,77,64,157,173,74,148,90,217,178,65,91,201,217,85,108}
Returns: {23, 13, 16, 22, 47, 24, 33, 38, 36, 34, 28, 43, 26, 21, 31, 37, 5, 39, 32, 45, 40, 15, 14, 2, 35, 3, 12, 27, 10, 20, 9, 25, 7, 4, 19, 0, 41, 11, 30, 42, 46, 29, 6, 8, 17, 44, 1, 18 }
{669,448,723,241,190,530,128,777,653,584,489,166,630,879,136,709,449,234,411,820,409,845,946,732,241,709,744,701,252,260,398,339,372,872,386,838,932,562,880,460,729,286,311,148,203,73,956,763,353,159,578,922,397,885,165,622,374}
Returns: {3, 14, 11, 16, 18, 15, 5, 7, 12, 0, 17, 1, 8, 2, 10, 6, 9, 13, 4 }
{826,539,901,619,485,909,280,545,973,522,755,823,555,478,307,807,224,276,726,396,213,852,645,587}
Returns: {1, 2, 5, 7, 0, 6, 4, 3 }
{437,267,606,369,244,631,462,546,661,708,446,497,259,711,627,445,449,722,404,568,424,308,419,521,665,249,412,243,599,296,287,410,431,420,706,560,450,485,642,475,409,650,484,305,593,480,585,714,528,579,311,472,535,378,594,730,304,364,563,441,485,397,636,260,459,585,547,591,543,242,540,554,252,598,461,333,677,316,275,281,661,255,666,574,529,328,323,334,665,303,577,580,556,731,646,563,341,384,480,734,423,527,307,296,602,631,257,402,589,478,357,296,452,599,487,637,645,591,613,582,442,457,543,633,709,282}
Returns: {18, 23, 19, 24, 11, 28, 32, 7, 3, 17, 21, 33, 0, 29, 25, 20, 36, 27, 39, 22, 13, 15, 16, 30, 2, 40, 5, 31, 14, 9, 6, 35, 4, 34, 1, 37, 12, 26, 41, 8, 10, 38 }
{111,937,618,863,488,261,613,906,796,86,738,683,972,194,957,136,493,681,574,894,221,98,945,726,200,912,398,951,81,342,685,731,645,282,492,146,917,553,667,629,99,257,207,856,523,916,382,830,356,494,667,269,93,973,696,501,508,813,445,795,446,756,844,879,899,862,369,795,198,886,765,250,864,225,118,545,818,797,786,198,895,59,421,950,627,394,417,838,626,245,882,977,113,127,967,319,344,340,554,241,657,58,556,892,719}
Returns: {30, 2, 22, 15, 20, 7, 16, 12, 33, 25, 5, 9, 27, 32, 11, 14, 31, 29, 3, 18, 1, 26, 24, 13, 6, 17, 4, 23, 34, 19, 28, 0, 8, 10, 21 }
{447,467,472,459,442,447,469,443,445,435,470,442,462,465,452,470,439,448,460,453,440,445,444,453,443,464,463,469,451,465,465,461,446,457,441,452,454,441,454,456,438,444,471,445,445,452,453,444,455,473,470,436,468,439,435,439,459,463,469,441,436,463,446,462,459,466,444,468,441,465,471,462,458,466,470,468,469,438,461,437,469,440,435,440,465,470,469,465,445,460,461,448,441,469,465,446,473,453,436,443,437,472,460,473,461,437,441,461,442,465,468,472,439,439,446,438,448,456,448,472,466,471,473,454,441,470,438,460,468,435,441,437}
Returns: {17, 29, 26, 6, 37, 5, 41, 9, 0, 1, 4, 12, 28, 33, 39, 16, 13, 34, 14, 31, 20, 36, 42, 25, 8, 18, 30, 11, 22, 38, 10, 15, 40, 21, 35, 19, 7, 3, 24, 27, 2, 43, 32, 23 }
{434,514,477,572,458,561,510,442,523,366,558,446,533,412,438,515,514,349}
Returns: {2, 0, 1, 3, 4, 5 }
{66,221,177,121,198,139,79,183,90,127,160,104,90,130,237,108,85,84,74,159,230,202,252,134,199,201,182,78,183,238,189,242,162,88,78,162,158,195,163,82,78,146,203,218,137,85,109,63,79,173,105,188,142,132,199,195,231,250,234,155,237,145,60,101,182,166,209,104,164,161,216,221,221,144,148,180,214,170,84,165,232,97,103,122,257,138,75,217,154,70,144,175,115,72,199,164,78,182,134,215,136,112,172,119,203,230,185,136,253,231,196,98,240,96,104,69,216,142,110,232,81,254,112,145,233,169,143,60,168,173,90,246}
Returns: {29, 36, 13, 21, 28, 12, 19, 14, 30, 40, 1, 42, 31, 32, 7, 23, 17, 0, 39, 41, 34, 33, 37, 22, 18, 43, 35, 6, 26, 15, 20, 4, 8, 24, 38, 5, 11, 9, 2, 25, 27, 10, 16, 3 }
{655,784,714,883,667,727,738,763,879,800,664,869,696,828,852,715,752,756,826,832,764,755,717,719,866,882,807,784,648,789,651,900,728,858,748,870,711,833,715,883,834,660,816,697,722,665,727,669,859,714,871,751,703,732,828,703,839,856,716,900,733,895,674,836,682,758,799,692,825,677,858,664,867,771,766,654,704,695,771,819,687,838,862,768,789,893,768,849,774,778,860,904,855,884,687,822,726,842,840,882,891,839,695,765,711}
Returns: {25, 16, 3, 15, 21, 30, 0, 31, 9, 26, 13, 6, 23, 24, 10, 7, 20, 1, 4, 34, 5, 14, 22, 33, 17, 19, 8, 18, 12, 11, 27, 28, 2, 29, 32 }
{268,89,357,448,147,60,228,80,267,150,256,252,337,51,175,275,174,400,39,195,52,126,89,404,440,389,150,282,83,325,136,255,422,286,451,128,128,156,375,258,322,211,181,354,238,395,430,256}
Returns: {6, 12, 4, 8, 9, 10, 5, 7, 13, 3, 15, 11, 0, 14, 1, 2 }
{254,244,227,341,289,896,262,462,573,381,277,862,529,377,291,294,430,191,252,635,334,559,612,583,877,176,812,595,479,487,489,738,538}
Returns: {5, 7, 8, 1, 3, 4, 6, 0, 2, 9, 10 }
{214,215,202,169,193,170,220,170,190,188,219,192,171,205,224,151,138,171,146,186,178,147,131,223,186,157,214,143,222,176,193,139,170,180,166,166,229,177,228,196,205,213}
Returns: {13, 3, 10, 0, 6, 7, 12, 11, 1, 9, 2, 5, 4, 8 }
{853,440,881,843,422,842,889,927,511,529,803,744,494,734,816,523,784,778,573,923,607,564,883,524}
Returns: {0, 4, 1, 5, 7, 2, 3, 6 }
{303,432,422,677,523,449,793,830,270,538,301,581,685,686,822,356,817,725,819,584,315,391,612,712,445,448,294,309,281,360,860,626,332,788,569,619,505,362,272,411,327,336,856,464,276,590,484,577,465,389,424,533,740,495,668,648,432,431,299,603,325,806,722,626,339,357,623,463,618,657,849,707,769,675,801,851,623,743,298,828,553,453,531,510,891,683,732,374,682,633,868,552,589,521,469,555,702,425,687,668,611,382,664,579,741,546,461,710,814,508,804,341,380,618,824,586,693}
Returns: {33, 34, 8, 12, 24, 21, 31, 0, 20, 22, 32, 27, 5, 15, 36, 23, 19, 3, 16, 25, 26, 28, 37, 35, 13, 14, 2, 7, 29, 11, 4, 6, 10, 17, 30, 1, 18, 9, 38 }
{417,441,429,465,457,426,383,391,445,401,400,356,455,365,403,370,385,407,410,366,408,400,365,365,362,418,387,385,389,481,379,375,388,420,462,455,417,450,360,403,395,457,479,413,405,406,462,463,443,470,444,382,399,386,477,408,435,378,397,468,387,478,438,412,367,412,481,441,467,452,450,455,454,464,472,382,414,391,430,378,441,407,474,428,363,440,369,464,436,406,383,421,463,399,465,473,382,459,474,407,386,434}
Returns: {30, 4, 3, 31, 16, 15, 0, 17, 26, 10, 1, 11, 19, 22, 7, 29, 2, 9, 21, 24, 14, 18, 12, 25, 23, 5, 32, 8, 20, 28, 33, 13, 27, 6 }
{653,358,449,602,621,647,543,525,506,362,490,577,716,546,356,362,403,605,661,604,639,379,612,594,640,720,481,500,435,590,476,546,666,477,717,558,423,359,379,677,687,552,626,514,637,506,561,451,680,392,657,502,375,495,407,483,722,526,416,356,516,592,629,536,394,462,410,519,374,511,656,708,389,377,595}
Returns: {22, 10, 17, 12, 5, 6, 21, 14, 9, 24, 19, 0, 4, 20, 2, 7, 1, 3, 13, 18, 11, 16, 8, 15, 23 }
{786,853,853,782,810,843,826,819,766,778,815,839,753,770,838,743,738,752,738,768,853,743,784,851,772,783,854,834,782,770,779,760,846,764,802,779,752,750,801,759,748,754,854,743,829,821,759,850,743,830,807,749,810,796,758,809,749,824,814,835,814,852,765,823,761,795,808,846,739,792,847,788,828,806,821,783,800,738,821,751,841,843,740,744,812,812,811,792,797,770,822,835,787,854,807,755,847,760,831,842,772,811,790,851,784,831,774,751,747,751,835,838,850,765,791,820,834}
Returns: {17, 12, 10, 36, 37, 18, 38, 15, 13, 7, 27, 31, 6, 32, 33, 22, 35, 23, 24, 34, 11, 4, 30, 21, 8, 2, 20, 28, 16, 29, 25, 3, 9, 19, 0, 14, 5, 26, 1 }
{282,372,386,367,258,293,300,385,342,363,387,325,352,390,322,316,306,243,386,387,400,248,308,331,242,304,367,325,337,277,290,323,306,342,332,378,252,329,331,317,292,304,331,347,351,320,334,311,283,317,375,252,365,372,325,362,343,254,247,298,260,251,366,351,316,371,333,261,331,331,394,341,285,309,272,287,270,242,271,386,297,256,365,256,321,258,360,355,391,317,291,277,269,380,348,312,299,354,382}
Returns: {12, 10, 31, 19, 22, 13, 14, 30, 17, 25, 11, 5, 24, 6, 29, 0, 4, 23, 20, 16, 8, 18, 28, 15, 2, 26, 7, 9, 32, 3, 21, 1, 27 }
{682,502,546,592,651,736,534,595,601,479,736,736,558,578,757,600,708,504,527,714,570,600,687,626,519,615,534,726,581,631,750,487,761,726,623,626,505,706,567,756,749,537}
Returns: {6, 4, 8, 10, 2, 3, 9, 0, 7, 5, 13, 1, 12, 11 }
{170,253,120,225,322,120,323,227,204,100,303,312,119,152,176,277,313,284,215,231,311,250,231,157,273,135,232,248,255,154,287,176,123,214,112,198,138,126,324,303,230,152,100,251,180,261,236,157,249,256,260,287,260,220,243,241,177,189,235,244}
Returns: {15, 13, 3, 8, 10, 9, 4, 12, 2, 6, 5, 1, 18, 17, 7, 11, 0, 14, 16, 19 }
{673,352,304,550,539,259,477,619,415,411,405,483,288,673,266,551,256,389,617,275,423,503,392,594,535,615,373,284,467,397,352,509,282,612,624,380,662,311,516,614,426,366,399,489,273,525,372,486,559,427,505,279,308,467,378,456,668}
Returns: {18, 5, 0, 11, 1, 6, 3, 16, 14, 15, 17, 7, 2, 4, 10, 12, 8, 13, 9 }
{555,685,445,628,530,591,534,475,519,649,574,492,541,686,704,480,460,586,675,436,498,570,445,591,613,705,432,526,626,501,541,630,654,646,475,546,504,687,567,614,696,466,490,682,648,453,658,651,530,529,434,520,592,440,701,620,646,699,517,532,463,583,569,502,624,490,667,670,699,598,611,527,537,707,519,589,473,568,674,651,460,479,557,526,690,533,470,513,557,444,571,493,439,516,468,672,582,630,461,616,648,649,549,574,613,608,658,657,644,640,642,667,560,519,521,700,554,609,688,465,585,644,675,565,581,555,531,637,708,481,499,570,536,537,666,660,553,643,626,604,467,584,466,635,620,516,601}
Returns: {24, 10, 23, 34, 32, 26, 14, 42, 8, 15, 9, 11, 35, 47, 5, 30, 45, 25, 0, 28, 44, 6, 2, 13, 16, 1, 39, 12, 4, 37, 41, 20, 48, 27, 19, 17, 40, 7, 3, 21, 18, 22, 36, 43, 38, 31, 46, 33, 29 }
{343,421,448,188,307,495,182,171,183,365,236,251,468,269,229,282,437,110,443,139,363,244,338,336,109,296,246,159,225,233,297,280,165,96,353,201,101,223,186,315,380,147,210,373,225,52,220,61,124,481,269}
Returns: {11, 4, 14, 10, 0, 15, 5, 13, 7, 9, 16, 6, 12, 1, 3, 2, 8 }
{416,541,554,596,251,461,533,547,492,435,528,453,385,420,334,546,441,560,592,447,600,371,289,290,604,518,563,514,367,245,586,387,562,492,261,266,295,287,236,480,600,537,321,456,434,625,485,406,525,357,316,290,417,230,420,587,448,623,307,284,604,607,349,586,485,389,289,272,499,312,276,280,561,307,586,341,597,235,497,587,586,463,607,533,550,273,465,340,393,494,538,297,407,552,554,309,551,299,318,639,243,378,587,297,250}
Returns: {14, 34, 28, 32, 21, 27, 10, 20, 25, 31, 16, 9, 22, 2, 4, 29, 13, 8, 12, 17, 26, 19, 33, 6, 1, 24, 18, 7, 23, 11, 15, 3, 30, 0, 5 }
{505,511,496,394,520,320,505,432,440,267,421,303,381,523,511,520,536,534,506,482,514,420,320,464,488,451,487,454,493,469,280,318,285,348,378,334}
Returns: {1, 4, 0, 7, 8, 11, 10, 6, 3, 5, 9, 2 }
{916,924,910,924,925,909,922,911,908,921,916,917,912,913,909,925,925,910,914,925,918,924,911,924,908,922,924,920,913,913,922,917,916,908,915,908,916,919,914}
Returns: {8, 2, 5, 10, 11, 3, 9, 7, 1, 6, 0, 12, 4 }
{587,890,536,631,422,719,649,653,778,892,489,514,607,756,479,808,771,482,482,956,406,945,432,794,365,842,504}
Returns: {8, 1, 4, 7, 3, 0, 2, 5, 6 }
{590,188,626,450,598,477,878,841,577,455,716,483,230,602,566,586,804,860,393,316,597,502,481,526,741,545,202,745,677,418,461,396,800,425,885,355,581,249,733,886,732,633,343,862,525,661,605,456,646,210,629,697,767,708,707,224,351,882,804,829,231,607,499,825,372,653,314,879,214,536,791,252,534,870,478,377,882,464,800,276,356,235,360,615,832,389,795,340,565,279,419,736,670,435,473,519,357,656,703,301,360,766}
Returns: {2, 32, 20, 29, 27, 10, 24, 16, 26, 18, 5, 1, 17, 31, 8, 4, 30, 25, 6, 9, 15, 23, 33, 19, 28, 12, 0, 11, 13, 21, 7, 3, 22, 14 }
{297,764,642,411,846,909,455,323,630}
Returns: {1, 0, 2 }
{203,215,213,213,208,211,207,207,214,211,204,208,208,208,207,219,208,213,218,215,214,206,213,207,204,210,216,206,213,219,212,207,207,203,208,209,203,207,217,213,210,216,215,215,208,215,216,217,208,213,204,213,208,209,204,219,209,216,203,205,202,204,202,202,202,218,202,205,205,203,218,208,213,216,214,206,208,210,204,216,207,219,212,215,212,211,211,203,206,219,216,215,208,219,202,203,218,218,219,217,206,207,205,209,209,213,218,203}
Returns: {10, 20, 8, 16, 6, 24, 30, 9, 12, 15, 17, 4, 3, 25, 22, 26, 1, 2, 27, 32, 34, 28, 29, 23, 13, 18, 7, 33, 11, 35, 5, 19, 14, 0, 31, 21 }
{121,282,176,391,518,97,331,349,357,323,369,434,103,549,465,325,406,345}
Returns: {0, 1, 5, 2, 3, 4 }
{506,476,472,516,470,486,487,521,498,506,480,526,485,487,474,528,508,469,528,479,529,509,524,489,515,484,521,481,508,522,511,480,495,474,503,489,514,518,495,520,526,484,517,473,478,505,499,527,488,522,515,509,508,479,493,498,476,487,528,480,488,481,470,508,490,484,475,483,502}
Returns: {2, 18, 4, 7, 20, 15, 11, 0, 9, 12, 8, 19, 6, 5, 13, 10, 1, 16, 14, 3, 22, 21, 17 }
{255,553,602,562,625,237,307,593,658,458,609,541,248,531,487,449,581,517,386,316,627,463,390,299,241,293,577,543,510,515,258,251,523,488,222,312,343,295,573,270,429,329,344,426,302,329,454,375,289,479,645,261,573,627,309,592,500,289,652,273}
Returns: {11, 14, 18, 3, 15, 9, 17, 12, 4, 16, 10, 8, 6, 2, 5, 7, 13, 19, 1, 0 }
{199,173,260,224,183,193,221,233,166,239,162,264,264,177,208,171,150,222,231,236,255,210,233,151,169,230,204,224,239,152,197,240,167,208,152,214,187,245,233,221,210,235,208,168,189,224,223,203,250,180,230,204,178,254,252,245,155,249,228,211,171,200,265,162,148,194,186,175,196,175,178,243,147,164,259,238,266,165,263,267,161,147,236,258}
Returns: {20, 18, 13, 16, 15, 22, 25, 8, 7, 3, 5, 19, 11, 6, 27, 9, 2, 26, 0, 24, 10, 21, 1, 14, 23, 12, 17, 4 }
{148,66,48,145,141,107,135,54,82,107,91,153,101,156,61,152,89,99,74,117,120,111,57,134,67,127,45,88,70,109,131,147,108,126,35,44,82,42,122,103,73,43,70,110,100,39,39,63,77,135,74,141,68,135,64,140,34,147,62,106,152,48,141,38,72,71,53,70,108,83,39,88,145,84,108,137,102,44,90,48,49,68,70,116,141,136,138,70,114,51,147,147,96,156,87,103,43,57,82,108,94,67,54,151,61,36,103,42,113,125,124,139,68,106,65,71,148,58,136,127,111,145,88,153,154,40,81,56,75,38,140,92,70,105,151,112,70,108,136,152,147}
Returns: {33, 23, 35, 20, 31, 18, 15, 10, 46, 25, 32, 21, 43, 7, 6, 16, 5, 42, 39, 41, 40, 14, 26, 0, 8, 13, 34, 22, 27, 2, 3, 17, 37, 36, 4, 30, 12, 29, 28, 19, 24, 38, 11, 1, 9, 45, 44 }
{378,437,528,400,484,398,417,537,372,377,384,558,399,385,524,529,406,575,379,467,451,388,429,503}
Returns: {2, 1, 0, 5, 3, 6, 7, 4 }
{685,709,719,699,701,692,691,724,702,718,716,709,720,703,715,720,699,715,712,690,689,685,720,715,690,701,721,687,721,703,713,694,707,699,722,703,709,702,710,700,706,703,700,710,694,718,721,724,714,705,714,717,686,714,717,723,709,692,686,723,693,705,708,712,701,714,689,718,711,723,705,716,717,686,723,693,716,710,713,686,719,693,690,697,687,700,695,702,719,721,695,709,706,719,713,704,703,710,702,696,714,706,690,702,703,715,713,701,692,694,686,704,715,712,696,722,704,717,711,711,685,718,693,699,711,698,710,693,692,711,722,690,695,688,701,720,704,688,699,703,708,690,698,685,685,705,721}
Returns: {1, 41, 47, 19, 45, 42, 11, 5, 14, 36, 20, 2, 22, 26, 33, 46, 18, 34, 39, 3, 29, 21, 8, 24, 7, 12, 38, 35, 15, 31, 25, 23, 0, 27, 17, 13, 30, 6, 10, 43, 37, 9, 16, 32, 48, 40, 28, 44, 4 }
{393,408,441,438,437,419,396,414,402,436,448,445,441,449,407,399,424,406,402,446,398,425,438,425,437,447,413,402,442,426,391,440,404,423,420,440,419,407,440,429,419,392,405,440,408,449,428,445,404,425,444,429,427,440,398,391,423,397,428,391,405,445,431,443,410,394,421,441,408,446,430,448,443,416,437,413,410,415,426,412,431,405,446,432,403,431,407,431,438,441,422,450,407,435,431,443,418,399,450,403,438,407,432,392,412,426,425,425,409,440,449,394,399,438,427,399,429}
Returns: {16, 11, 19, 25, 20, 26, 28, 13, 0, 2, 9, 6, 27, 1, 10, 34, 29, 7, 36, 24, 3, 31, 23, 15, 35, 14, 8, 38, 37, 17, 5, 21, 22, 12, 32, 4, 33, 18, 30 }
{504,220,238,360,902,137,222,674,612,743,341,476,522,802,727}
Returns: {0, 1, 4, 2, 3 }
{248,166,141,105,174,142,219,267,132,200,206,121,180,165,224,170,157,227,245,238,206,182,225,251,254,248,221,228,105,179,180,164,108,238,208,127,141,264,211,229,149,272,123,196,264,177,247,264,129,235,178,177,141,143,233,210,106,134,161,200,218,221,185,236,198,195,197,223,205,124,197,220,273,260,226,272,225,222,233,133,143,129,136,262,155,208,134,195,114,257,177,234,221,165,145,103,165,130,154,134,196,118,140,152,264,227,100,248,121,261,138,193,256,120,251,103,257,226,140,129,213,107,206,273,108,163,214,230,266,176,231,232,266,262,119,201,190,194}
Returns: {12, 11, 4, 19, 38, 8, 21, 1, 17, 36, 27, 44, 7, 18, 24, 22, 31, 20, 35, 45, 42, 26, 0, 34, 28, 9, 6, 32, 39, 23, 30, 13, 25, 40, 2, 16, 15, 41, 33, 3, 10, 29, 37, 14, 5, 43 }
{803,896,776,790,851,870,876,822,816,879,819,816,828,779,827,795,784,891,788,835,878,803,807,889,879,810,894,886,856,792,773,877,793,781,851,861,845,883,895}
Returns: {11, 10, 1, 6, 12, 3, 0, 5, 7, 4, 8, 9, 2 }
{529,595,885,570,584,351,626,373,526,320,344,823,626,847,576,796,661,750,528,454,885,672,422,781,367,721,851,428,316,450,490,855,542,849,444,315,705,661,364,523,800,888,870,473,672,355,585,615,448,811,384,532,659,751,368,750,543,502,682,342,606,701,464,870,418,783,604,738,747,748,341,573,831,570,397,591,863,395,632,860,364,839,490,412,475,576,477,783,517,458,327,768,341,825,733,315,415,566,730,444,894,383,798,777,591,896,667,529,628,616,884,711,497,375,659,692,749}
Returns: {10, 21, 29, 36, 18, 12, 22, 28, 11, 7, 5, 25, 33, 1, 27, 4, 15, 23, 17, 34, 26, 30, 38, 13, 0, 2, 32, 24, 8, 14, 16, 37, 31, 6, 35, 19, 20, 3, 9 }
{295,449,623,474,590,700,505,599,504,565,341,578,628,508,708,335,676,597,618,424,185,337,684,702,460,420,298,416,295,302,492,200,233,531,586,666,614,530,702,424,584,549,661,461,306,658,216,472,614,264,691,447,323,501,653,303,303,415,316,201,261,408,222,686,419,368,582,193,196,193,205,341,463,202,229,505,373,475,601,237,251,629,593,556,313,286,527,461,366,689,488,511,592,448,278,631,481,541,535,451,316,704}
Returns: {19, 10, 5, 28, 3, 31, 17, 11, 2, 12, 8, 0, 4, 21, 15, 1, 9, 18, 26, 16, 13, 29, 22, 24, 33, 20, 27, 25, 30, 32, 23, 7, 14, 6 }
{200,691,679,391,653,410,512,206,74,741,706,142,536,386,612,461,93,390}
Returns: {1, 3, 4, 5, 2, 0 }
{387,740,657,818,457,679,667,736,822,711,415,506,625,766,782,599,419,650,727,558,545,568,666,518,612,499,564,766,779,436,696,678,772,835,667,432,733,730,655,424,832,577,733,658,512,447,417,746,740,722,689,413,755,742,515,686,725,442,463,537,639,527,395,544,694,407,672,608,704,478,707,387,390,662,576,600,829,573,699,734,569,738,674,520,456,701,732,831,673,398,780,637,568,743,748,811,449,758,461,713,431,520,643,666,696,402,583,609,678,616,590,579,753,650,532,609,534,617,638,708,805,721,681,675,794,728,441,499,751,503,666,747,568,420,626,641,485,408,799,460,610}
Returns: {13, 6, 14, 41, 38, 43, 35, 21, 39, 32, 18, 33, 19, 1, 11, 42, 17, 7, 46, 45, 36, 10, 28, 4, 9, 0, 27, 37, 44, 29, 26, 16, 5, 30, 12, 15, 22, 40, 34, 24, 3, 8, 31, 25, 20, 23, 2 }
{638,432,368,594,597,613,237,652,724,239,309,173,584,237,266,350,192,435,349,573,652,449,648,466,135,393,427,402,629,527,277,552,466,550,149,424,589,142,466,335,601,382,393,532,632,509,334,638,317,515,509,437,569,612,299,379,474,670,231,716,373,482,268,261,223,386,435,441,146,489,592,713,648,369,467,422,695,150,520,466,269,728,185,550,442,522,625,357,221,676,327,667,230,304,162,148,300,267,393,380,156,345,301,399,606}
Returns: {16, 26, 15, 28, 10, 0, 1, 30, 27, 14, 12, 19, 34, 32, 24, 6, 3, 29, 13, 21, 31, 23, 22, 17, 7, 4, 5, 18, 8, 20, 11, 2, 33, 9, 25 }
{530,863,546,871,493,716,603,572,608,701,849,593,762,570,545,515,423,611,654,795,581,539,936,899}
Returns: {6, 4, 5, 2, 1, 7, 3, 0 }
{337,612,671,601,628,524,366,615,642,381,502,540,553,449,354,465,390,552,422,350,405,566,546,317,579,545,380,624,475,354,671,502,464,533,539,659,593,469,603,533,573,590,378,328,559,396,381,376,339,452,480,611,564,319,502,629,653,612,592,559,419,637,610,375,328,359,429,657,369,396,416,542,364,343,441,338,591,423,550,609,414,488,355,661,408,536,422,663,489,601,402,459,351,632,612,422,588,573,383,673,376,363,570,424,590,672,556,500,417,618,472,643,420,416}
Returns: {20, 33, 35, 7, 12, 9, 2, 34, 32, 29, 15, 18, 6, 10, 30, 13, 4, 36, 22, 28, 14, 11, 1, 3, 31, 23, 16, 0, 26, 25, 21, 27, 37, 19, 5, 24, 8, 17 }
{549,482,394,439,404,599,559,582,428,450,393,405,589,614,562,536,574,436,496,513,533,598,626,464,443,473,426,425,504,444,453,522,623,586,509,405,391,565,509,450,569,481,377,606,375,589,427,593,499,526,584,389,593,519,429,482,613,442,461,580,494,457,537,399,508,406,553,487,396,573,460,500,429,488,619,501,392,387,434,536,457,456,473,384,383,553,568,574,470,405,440,390,528,478,437,601,589,425,511,572,379,425,401,377,422,401,520,627,457,404,458,392,433,414,612,582,453}
Returns: {26, 16, 6, 33, 25, 37, 27, 7, 17, 30, 29, 38, 11, 5, 14, 31, 4, 22, 21, 1, 28, 20, 24, 32, 13, 23, 3, 18, 35, 8, 19, 0, 10, 36, 2, 15, 12, 9, 34 }
{720,712,809,757,798,855,755,716,862,777,849,768,781,784,836,699,855,804,747,780,850,875,825,757,742,876,791,740,774,803,840,842,799,876,703,855,791,788,849,865,798,828,814,744,877,780,815,778,714,817,752,871,802,811,795,770,767,794,818,776,702,866,768,708,820,803,721,699,737,776,709,760,771,754,796,802,815,881,720,757,781,879,856,729,703,850,704,768,826,806,771,810,881,881,819,881,701,773,797}
Returns: {11, 27, 14, 15, 10, 4, 7, 17, 0, 24, 29, 25, 16, 1, 12, 22, 8, 2, 18, 6, 30, 13, 9, 3, 26, 28, 32, 5, 19, 20, 23, 21, 31 }
{293,290,286,280,290,274,277,292,278,274,298,293,277,296,279,278,286,281,280,297,288,287,286,294,286,289,284,298,285,287,278,298,293,285,298,290,292,288,289,295,289,279,276,275,298,286,280,298,282,274,282,277,277,281}
Returns: {4, 17, 10, 13, 7, 15, 8, 3, 2, 6, 12, 16, 1, 9, 14, 0, 11, 5 }
{626,700,265,517,271,430,382,714,265,475,669,756,612,762,701,369,399,515,281,689,408,454,729,630,591,354,685,640,716,274,719,488,674,459,486,684,499,578,707,398,261,433,707,485,477,349,399,671,596,516,654,662,569,311,372,546,647,306,360,263,272,464,699,355,505,676,525,377,345,324,411,619,254,728,255,681,422,660,361,606,308,617,774,697,784,368,350}
Returns: {6, 0, 15, 17, 10, 20, 21, 23, 25, 14, 27, 13, 9, 2, 22, 11, 1, 18, 5, 28, 16, 4, 8, 12, 24, 19, 3, 7, 26 }
{530,484,412,527,402,393,384,420,393,322,499,424,485,446,492,534,526,499,434,513,307,368,516,503,474,308,463,319,413,380,486,426,451,477,508,390,306,433,320,464,526,454,481,448,450,538,383,399,385,445,313,462,536,295,303,483,510,316,298,526,321,373,529,530,321,369,371,461,317,309,366,533,301,519,394,417,456,472,450,456,507,533,479,519,412,405,431,406,389,519,426,421,341,293,502,520,486,317,528,350,427,360,371,445,405,317,527,297}
Returns: {27, 17, 20, 0, 18, 35, 25, 19, 32, 23, 14, 11, 9, 3, 8, 13, 16, 1, 22, 12, 21, 5, 34, 29, 30, 2, 24, 26, 4, 28, 7, 6, 10, 33, 31, 15 }
{507,504,509,507,510,503,502,507,508,507,507,502,500,506,510,507,510,511,505,509,511,506,504,503,501,502,500,506,500,506,505,501,511,508,505,509}
Returns: {6, 1, 8, 11, 7, 2, 9, 3, 4, 10, 0, 5 }
{619,323,767,487,496,301,459,389,318,730,754,337,737,361,554,409,770,543,518,298,724,639,662,371,564,736,604,550,719,446,334,489,745,601,684,382,632,671,761,603,651,430,409,661,788,564,743,365,436,467,505,408,368,649,716,529,395,425,462,694,652,653,594,579,319,551,372,772,325}
Returns: {20, 6, 1, 12, 19, 3, 10, 14, 13, 2, 9, 21, 4, 22, 0, 18, 8, 17, 11, 5, 16, 15, 7 }
{588,689,437,423,667,737,341,521,261,498,450,160,398,617,572,319,689,592,550,31,668,653,93,144,270,59,744}
Returns: {3, 7, 2, 4, 0, 1, 8, 5, 6 }
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
Returns: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49 }
{1,1,1,0,0,0,0,0,1,1,1,0,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,5,1,0,4,1,0,1,3,2,1,3,3,1,1,4,4}
Returns: {37, 12, 4, 18, 22, 32, 38, 36, 40, 16, 20, 47, 0, 7, 17, 30, 26, 28, 6, 21, 27, 45, 49, 10, 41, 1, 15, 19, 43, 44, 11, 39, 23, 2, 24, 29, 42, 8, 31, 5, 13, 34, 35, 3, 46, 48, 14, 9, 33, 25 }
{3,4,2,6,0,2,1,0,0,6,1,6,4,2,0,2,1,2,4,3,5,1,4,0,0,4,6,6,3,0,4,0,3,5,2,3,0,6,6,2,0,3,2,0,2,5,4,0,3,6,4,2,2,2,5,3,6,1,3,3,5,4,2,2,2,1,4,3,4,0,1,1,5,2,4,6,2,0,6,5,3,1,5,5,3,0,6,3,5,0,5,5,2,0,4,2,6,2,3,2,5,1,2,6,4,1,2,0,2,5,2,5,3,1,4,4,2,4,0,4,0,1,5,0,1,2,1,6,1,5,1,3,0,5,5,3,5,6,2,0,2,3,2,4}
Returns: {9, 27, 14, 38, 21, 36, 20, 40, 10, 19, 6, 11, 26, 7, 44, 25, 2, 28, 22, 46, 0, 12, 3, 41, 13, 18, 34, 37, 39, 15, 35, 17, 8, 1, 30, 29, 47, 32, 4, 16, 24, 43, 45, 31, 23, 33, 5, 42 }
{2,4,3,6,0,4,7,6,1,4,2,2,3,2,5,7,0,4,5,2,7,6,6,1,4,2,0,5,6,6,0,6,4,0,3,4,6,6,5,1,7,7,5,6,5,6,4,5,7,6,3,3,4,7,0,4,4,0,6,3,0,0,2,2,4,3,7,7,6,6,0,6,5,2,3,3,0,4,7,0,1,5,7,6,7,4,0,2,1,4,6,1,2,7,6,2,6,0,1,6,1,3,7,1,2,6,1,4,5,7,1,6,2,0,7,3,7,2,1,3,0,5,2,5,2,2,3,1,7,0,0,5,4,1,1,7,2,7,0,1,1,0,7,6}
Returns: {7, 27, 42, 32, 4, 26, 19, 5, 29, 3, 46, 38, 43, 45, 6, 39, 41, 2, 25, 11, 10, 9, 40, 18, 23, 30, 12, 15, 16, 36, 22, 24, 31, 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, 5, 6, 4, 5, 6, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5 }
Returns: {5, 6, 13, 11, 1, 4, 7, 10, 14, 2, 12, 3, 8, 0, 9 }
{123, 12, 123, 123, 42, 122, 44, 3, 2, 1, 3, 1, 4, 5, 3, 23, 5, 324, 423, 33, 355, 677, 655, 445, 444, 333, 333, 444, 555, 444 }
Returns: {0, 2, 9, 8, 7, 6, 5, 1, 4, 3 }
{512, 492, 104, 104, 204, 120, 420, 110, 220, 529, 220, 422, 929, 520, 101 }
Returns: {1, 4, 3, 0, 2 }
{1, 2, 3, 1, 2, 3, 7, 9, 3 }
Returns: {1, 2, 0 }