Пример #1
0
 @Test
 public void case49() {
   int[] life = {68, 38, 83, 5, 4, 74, 99};
   int[] damage = {53, 57, 19, 73, 60, 61, 2};
   int yourDamage = 32;
   assertEquals(1660, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #2
0
 @Test
 public void case9() {
   int[] life = {20, 5, 21, 29, 37, 84};
   int[] damage = {81, 47, 22, 88, 54, 19};
   int yourDamage = 61;
   assertEquals(844, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #3
0
 @Test
 public void case11() {
   int[] life = {16};
   int[] damage = {99};
   int yourDamage = 27;
   assertEquals(100, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #4
0
 @Test
 public void case72() {
   int[] life = {8, 15};
   int[] damage = {1, 2};
   int yourDamage = 1;
   assertEquals(54, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #5
0
 @Test
 public void case73() {
   int[] life = {99, 1};
   int[] damage = {99, 50};
   int yourDamage = 99;
   assertEquals(200, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #6
0
 @Test
 public void case67() {
   int[] life = {1, 99};
   int[] damage = {1, 2};
   int yourDamage = 2;
   assertEquals(104, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #7
0
 @Test
 public void case70() {
   int[] life = {1, 100};
   int[] damage = {10, 20};
   int yourDamage = 100;
   assertEquals(41, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #8
0
 @Test
 public void case55() {
   int[] life = {12, 6};
   int[] damage = {87, 17};
   int yourDamage = 7;
   assertEquals(226, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #9
0
 @Test
 public void case56() {
   int[] life = {30, 2, 15, 58, 7, 69, 14, 37, 35, 96};
   int[] damage = {22, 77, 61, 23, 40, 69, 8, 67, 34, 46};
   int yourDamage = 50;
   assertEquals(2221, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #10
0
 @Test
 public void case53() {
   int[] life = {80, 6, 64, 90, 95, 76, 84, 81};
   int[] damage = {95, 28, 30, 45, 44, 4, 88, 31};
   int yourDamage = 79;
   assertEquals(2085, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #11
0
 @Test
 public void case54() {
   int[] life = {96, 14, 33, 45, 26, 16, 48};
   int[] damage = {50, 10, 15, 23, 20, 75, 16};
   int yourDamage = 12;
   assertEquals(2228, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #12
0
 @Test
 public void case52() {
   int[] life = {90, 10, 45, 60, 3, 51, 36, 36, 21, 15};
   int[] damage = {40, 32, 46, 51, 96, 28, 42, 5, 56, 94};
   int yourDamage = 15;
   assertEquals(3928, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #13
0
 @Test
 public void case51() {
   int[] life = {87, 16, 92, 9, 99};
   int[] damage = {97, 64, 78, 66, 15};
   int yourDamage = 27;
   assertEquals(1767, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #14
0
 @Test
 public void case50() {
   int[] life = {98, 99, 83, 4, 60, 99, 44};
   int[] damage = {92, 89, 23, 70, 5, 94, 66};
   int yourDamage = 52;
   assertEquals(2133, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #15
0
 @Test
 public void case64() {
   int[] life = {12, 15, 99, 13, 98};
   int[] damage = {1, 1, 1, 90, 1};
   int yourDamage = 1;
   assertEquals(1611, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #16
0
 @Test
 public void case57() {
   int[] life = {18, 83, 17, 60, 56, 4, 76, 71, 12, 35};
   int[] damage = {94, 22, 26, 51, 95, 63, 70, 98, 91, 43};
   int yourDamage = 43;
   assertEquals(3944, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #17
0
 @Test
 public void case66() {
   int[] life = {100, 95, 91, 99, 92, 93, 98, 97, 94, 96};
   int[] damage = {100, 99, 98, 97, 96, 95, 94, 93, 92, 91};
   int yourDamage = 1;
   assertEquals(491152, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #18
0
 @Test
 public void case58() {
   int[] life = {9, 59, 78, 42, 75, 52, 97, 9, 18, 14};
   int[] damage = {19, 44, 90, 7, 13, 52, 38, 100, 52, 37};
   int yourDamage = 67;
   assertEquals(2112, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #19
0
 @Test
 public void case68() {
   int[] life = {5, 5, 5, 100};
   int[] damage = {100, 100, 100, 10};
   int yourDamage = 5;
   assertEquals(831, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #20
0
 @Test
 public void case59() {
   int[] life = {10, 11};
   int[] damage = {18, 20};
   int yourDamage = 10;
   assertEquals(79, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #21
0
 @Test
 public void case71() {
   int[] life = {1, 5, 10};
   int[] damage = {5, 5, 19};
   int yourDamage = 4;
   assertEquals(108, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #22
0
 @Test
 public void case60() {
   int[] life = {3, 5, 6};
   int[] damage = {3, 4, 5};
   int yourDamage = 3;
   assertEquals(39, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #23
0
 @Test
 public void case7() {
   int[] life = {1, 2, 3, 4, 5};
   int[] damage = {0, 0, 0, 2, 1};
   int yourDamage = 1;
   assertEquals(18, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #24
0
 @Test
 public void case62() {
   int[] life = {5, 1};
   int[] damage = {5, 3};
   int yourDamage = 3;
   assertEquals(19, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #25
0
 @Test
 public void case8() {
   int[] life = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
   int[] damage = {100, 100, 100, 100, 100, 100, 100, 100, 100, 100};
   int yourDamage = 1;
   assertEquals(550001, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #26
0
 @Test
 public void case6() {
   int[] life = {2, 3, 4};
   int[] damage = {1, 1, 0};
   int yourDamage = 3;
   assertEquals(4, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #27
0
 @Test
 public void case10() {
   int[] life = {40, 64, 28, 81, 97, 17, 49, 85, 18, 29};
   int[] damage = {5, 45, 96, 51, 97, 97, 76, 54, 16, 51};
   int yourDamage = 9;
   assertEquals(12917, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #28
0
 @Test
 public void case63() {
   int[] life = {100, 6, 34, 21, 79, 31, 5, 8, 23, 9};
   int[] damage = {1, 65, 32, 48, 95, 4, 9, 13, 3, 100};
   int yourDamage = 4;
   assertEquals(6646, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #29
0
 @Test
 public void case12() {
   int[] life = {46, 33, 20, 5};
   int[] damage = {12, 0, 82, 52};
   int yourDamage = 86;
   assertEquals(223, onefight.monsterKilling(life, damage, yourDamage));
 }
Пример #30
0
 @Test
 public void case48() {
   int[] life = {19, 70, 2};
   int[] damage = {52, 87, 2};
   int yourDamage = 6;
   assertEquals(1635, onefight.monsterKilling(life, damage, yourDamage));
 }