摘要: 你在一栋楼房下面,楼房一共有n层,第i层每秒有pi的概率会扔下一个东西并砸到你 求第一秒内你被砸到的概率 输入描述: 第一行一个整数n之后有n行,第i+1行有两个整数a i ,b i ,表示 输出描述: 设答案为 ,你只需要找到一个最小的非负整数T,使得 输出这个T就行了 示例1 输入 复制 2 1 阅读全文
posted @ 2018-11-24 22:17 lu_nacy 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Problem Statement We have a sequence of length N consisting of non-negative integers. Consider performing the following operation on this sequence unt 阅读全文
posted @ 2018-11-24 22:11 lu_nacy 阅读(203) 评论(0) 推荐(0) 编辑