public class Ants { public double antsCollision(int n) { // write code here return (1 - Math.pow(0.5,n-1)); } }
时间: 2024-10-25 08:45:22
public class Ants { public double antsCollision(int n) { // write code here return (1 - Math.pow(0.5,n-1)); } }