Skip to content

Commit 7b7fa4c

Browse files
authored
Update Solution.java
1 parent 28f504d commit 7b7fa4c

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g3201_3300/s3273_minimum_amount_of_damage_dealt_to_bob

1 file changed

+0
-3
lines changed

src/main/java/g3201_3300/s3273_minimum_amount_of_damage_dealt_to_bob/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ private class Pair implements Comparable<Pair> {
2121

2222
@Override
2323
public int compareTo(Pair p) {
24-
2524
int thisHits = (int) Math.ceil((double) this.health / power);
2625
int otherHits = (int) Math.ceil((double) p.health / power);
27-
2826
double thisTotalDamage = this.damage * 1.0 / thisHits;
2927
double otherTotalDamage = p.damage * 1.0 / otherHits;
30-
3128
return Double.compare(otherTotalDamage, thisTotalDamage);
3229
}
3330
}

0 commit comments

Comments
 (0)