Beispiel #1
0
 // @Test
 public void case13() {
   int[] bricks = {
     4, 20, 2893, 50089, 5068, 1, 1654, 460, 2, 2, 4481, 1907, 10, 20321, 1904, 2031, 288665, 2455,
     31027, 190, 541, 811, 8903, 15, 1675, 51, 15505, 8, 5, 58594, 11, 383, 172, 142
   };
   assertEquals(105667, equaltowers.height(bricks));
 }
Beispiel #2
0
 // @Test
 public void case55() {
   int[] bricks = {
     1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7,
     8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8
   };
   assertEquals(108, equaltowers.height(bricks));
 }
Beispiel #3
0
 // @Test
 public void case6() {
   int[] bricks = {
     162, 50, 7, 10966, 24, 8940, 3, 5788, 611, 178328, 6709, 39, 471, 1, 7537, 716, 67940, 22,
     15502, 3, 29407, 3086, 6398, 27, 58706, 456, 1, 9, 19187, 77491, 1, 1346, 66
   };
   assertEquals(250000, equaltowers.height(bricks));
 }
Beispiel #4
0
 // @Test
 public void case79() {
   int[] bricks = {
     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, 282, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47
   };
   assertEquals(691, equaltowers.height(bricks));
 }
Beispiel #5
0
 // @Test
 public void case49() {
   int[] bricks = {
     4343, 432, 52, 7634, 7536, 423, 523, 63, 78, 1, 523, 6342, 63, 321, 2, 2, 32, 3253, 235, 325,
     6, 6235, 325347, 72, 325, 3276, 32, 7, 3, 36, 6345, 6, 7, 2, 32, 327, 2, 563, 532
   };
   assertEquals(24995, equaltowers.height(bricks));
 }
Beispiel #6
0
 // @Test
 public void case7() {
   int[] bricks = {
     950, 17716, 178, 54, 5776, 34, 183, 5176, 13398, 249, 2608, 3681, 855, 88196, 1891, 58459,
     2753, 27242, 1729, 231217
   };
   assertEquals(115564, equaltowers.height(bricks));
 }
Beispiel #7
0
 // @Test
 public void case8() {
   int[] bricks = {
     16, 19706, 7490, 58606, 363, 10253, 8709, 167609, 211, 48747, 38190, 10696, 3144, 187, 2425,
     4411, 13443, 10008, 6, 302, 461, 10367, 2456, 6948, 1803, 782, 72642
   };
   assertEquals(249897, equaltowers.height(bricks));
 }
Beispiel #8
0
 // @Test
 public void case4() {
   int[] bricks = {
     88242, 313, 1991, 4207, 2483, 1763, 224, 16, 582, 22943, 28632, 47682, 378, 90, 88, 43, 117,
     19, 8
   };
   assertEquals(99901, equaltowers.height(bricks));
 }
Beispiel #9
0
 // @Test
 public void case36() {
   int[] bricks = {
     250000, 72500, 1000, 10000, 2340, 324, 356, 123, 547, 6574, 123, 234, 436, 5467, 2354, 213,
     23, 34, 2, 5, 5, 667, 3, 2, 1, 1, 34, 45, 45, 675, 34, 34, 234, 234, 435, 234, 45, 45, 125000
   };
   assertEquals(16464, equaltowers.height(bricks));
 }
Beispiel #10
0
 // @Test
 public void case24() {
   int[] bricks = {
     36252, 17006, 2701, 282051, 8035, 15613, 1555, 2479, 109, 1973, 15569, 8988, 37678, 484,
     39490, 26336, 1315
   };
   assertEquals(107014, equaltowers.height(bricks));
 }
Beispiel #11
0
 // @Test
 public void case25() {
   int[] bricks = {
     68751, 8237, 40379, 6696, 1171, 1953, 208572, 10019, 17627, 6144, 32181, 8013, 13994, 64478,
     11516
   };
   assertEquals(226604, equaltowers.height(bricks));
 }
Beispiel #12
0
 // @Test
 public void case21() {
   int[] bricks = {
     400, 421, 58236, 39488, 3772, 44124, 846, 61, 12041, 485, 114, 5622, 174381, 4682, 48880,
     23787, 22, 8443, 1196, 25658, 41739, 7, 8, 5530, 10
   };
   assertEquals(249973, equaltowers.height(bricks));
 }
Beispiel #13
0
 // @Test
 public void case19() {
   int[] bricks = {
     77524, 8, 2989, 22, 479, 16057, 2574, 16, 2911, 93155, 121978, 169575, 35, 6426, 1367, 899,
     3985
   };
   assertEquals(248488, equaltowers.height(bricks));
 }
Beispiel #14
0
 // @Test
 public void case16() {
   int[] bricks = {
     285094, 56875, 5213, 8, 1299, 26306, 66, 3, 5896, 64198, 5, 6566, 3607, 35267, 7174, 52, 2,
     2369
   };
   assertEquals(107453, equaltowers.height(bricks));
 }
Beispiel #15
0
 // @Test
 public void case59() {
   int[] bricks = {
     14, 3, 20, 15, 15, 14, 24, 23, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 3, 4, 5, 6, 7, 834, 54,
     4, 3, 4, 5, 4, 5, 6, 7, 8, 3, 4, 566, 7, 76, 5, 4, 5, 565, 4, 4, 3, 3
   };
   assertEquals(1209, equaltowers.height(bricks));
 }
Beispiel #16
0
 // @Test
 public void case41() {
   int[] bricks = {
     1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
     1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
   };
   assertEquals(137, equaltowers.height(bricks));
 }
Beispiel #17
0
 // @Test
 public void case60() {
   int[] bricks = {
     1, 2, 5, 300, 52, 94, 21, 854, 23, 19, 43, 100, 1000, 54, 5000, 97, 81, 359, 1584, 34, 94, 22,
     59, 78, 4, 6, 9, 194, 994, 26, 996, 654, 488, 124, 84, 161, 894, 210, 929, 44, 12
   };
   assertEquals(7902, equaltowers.height(bricks));
 }
Beispiel #18
0
 // @Test
 public void case44() {
   int[] bricks = {
     1, 1, 3, 240, 300, 1, 11, 1, 11, 1, 23, 121, 2346, 3324, 43562, 554, 55, 55, 100, 9, 50000,
     200000, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 67, 8, 6, 4, 4, 3, 2, 7, 4, 235, 3256
   };
   assertEquals(50994, equaltowers.height(bricks));
 }
Beispiel #19
0
 // @Test
 public void case68() {
   int[] bricks = {
     1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
     1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
   };
   assertEquals(25, equaltowers.height(bricks));
 }
Beispiel #20
0
 // @Test
 public void case5() {
   int[] bricks = {
     188242, 313, 1991, 4207, 2483, 1763, 224, 16, 582, 22943, 111653, 23787, 16820, 12415, 1270,
     3032, 2293, 5221, 396, 42
   };
   assertEquals(199661, equaltowers.height(bricks));
 }
Beispiel #21
0
 // @Test
 public void case77() {
   int[] bricks = {
     14, 3, 20, 15, 15, 14, 24, 23, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
   };
   assertEquals(106, equaltowers.height(bricks));
 }
Beispiel #22
0
 // @Test
 public void case56() {
   int[] bricks = {
     14, 3, 20, 15, 15, 14, 24, 23, 15, 2, 3, 13, 43, 14, 17, 33, 12, 13, 12, 1, 1, 4, 14, 21, 12,
     11, 14, 33, 22, 21, 24, 21, 12, 22, 24, 31, 31, 2, 1, 3, 2, 5, 14, 16, 17, 14, 18, 13, 12, 11
   };
   assertEquals(376, equaltowers.height(bricks));
 }
Beispiel #23
0
 // @Test
 public void case12() {
   int[] bricks = {
     2077, 825, 3, 8560, 31476, 1, 6, 806, 10, 32313, 201, 10330, 10, 16, 1632, 2653, 1, 122,
     17443, 154, 1799, 9557, 2054, 19372, 13, 92, 5, 259916, 98553
   };
   assertEquals(120042, equaltowers.height(bricks));
 }
Beispiel #24
0
 // @Test
 public void case10() {
   int[] bricks = {
     30722, 69, 2595, 282, 22602, 1999, 22609, 678, 22411, 66, 1, 52297, 2375, 3, 247, 4, 41, 11,
     455, 792, 226, 14, 7656, 3732, 5080, 614, 902, 2, 206, 608, 995, 64482, 89, 255135
   };
   assertEquals(122432, equaltowers.height(bricks));
 }
Beispiel #25
0
 // @Test
 public void case91() {
   int[] bricks = {
     1, 2, 2, 1, 1, 3, 2, 3, 2, 2, 1, 1, 2, 3, 3, 3, 2, 1, 2, 3, 4, 3, 2, 3, 3, 2, 2, 3, 3, 3, 2,
     2, 2, 3, 3, 3, 3, 2, 2, 2, 1, 2, 2, 3, 3, 3, 3, 3, 1, 1
   };
   assertEquals(57, equaltowers.height(bricks));
 }
Beispiel #26
0
 // @Test
 public void case9() {
   int[] bricks = {
     2708, 21206, 6036, 26939, 22955, 8624, 57476, 12597, 1493, 21684, 33122, 9287, 16186, 5355,
     5073, 2807, 233894, 12340
   };
   assertEquals(239409, equaltowers.height(bricks));
 }
Beispiel #27
0
 // @Test
 public void case85() {
   int[] bricks = {
     2, 3, 5, 17, 105, 106, 2, 195, 11, 82, 103, 18, 107, 105, 8, 9, 11, 196, 19, 80, 105, 19, 1,
     20, 20, 40, 15, 15, 31, 16, 15
   };
   assertEquals(740, equaltowers.height(bricks));
 }
Beispiel #28
0
 // @Test
 public void case11() {
   int[] bricks = {
     571, 39, 967, 2, 9471, 10, 40, 46730, 6476, 1, 382, 1, 1, 913, 6604, 1004, 28666, 2908, 2340,
     402, 38, 16, 258541, 131, 6249, 3, 7, 3061, 4, 2876, 2, 5200, 18722, 59, 104, 29, 91401, 6000,
     29
   };
   assertEquals(120729, equaltowers.height(bricks));
 }
Beispiel #29
0
 // @Test
 public void case89() {
   int[] bricks = {
     12000, 64444, 1222, 56, 66, 301, 1005, 100000, 15444, 9688, 987, 9888, 1022, 989, 20111,
     50154, 12445, 454, 877, 657, 7788, 789, 12, 699, 887, 977, 548, 1, 544, 44133, 654, 68, 879,
     669, 451, 3357, 687, 1123, 12, 51, 13, 25, 687, 665, 48, 889, 11202, 21547, 10010
   };
   assertEquals(205612, equaltowers.height(bricks));
 }
Beispiel #30
0
 // @Test
 public void case80() {
   int[] bricks = {
     10000, 10000, 10000, 10000, 10000, 10001, 9999, 9999, 10001, 20001, 1, 200, 4000, 10, 13, 13,
     26, 200, 2020, 222, 45, 234, 90, 89, 78, 67, 56, 45, 34, 34, 34, 34, 34, 34, 3434, 344, 434,
     1123, 112, 112, 123, 111, 121, 111, 111, 200, 200, 19
   };
   assertEquals(62084, equaltowers.height(bricks));
 }