7.2---蚂蚁相遇问题(CC150)

public class Ants {
    public double antsCollision(int n) {
        // write code here
        return (1 - Math.pow(0.5,n-1));
    }
}

 

posted @ 2015-12-25 09:13  创业-李春跃-增长黑客  阅读(201)  评论(0编辑  收藏  举报