曖殇

博客园 首页 联系 订阅 管理

2018年11月25日

摘要: Problem Statement Given a string t, we will call it unbalanced if and only if the length of t is at least 2, and more than half of the letters in t ar 阅读全文
posted @ 2018-11-25 20:39 曖殇 阅读(191) 评论(0) 推荐(0) 编辑

2018年11月22日

摘要: Recently a dog was bought for Polycarp. The dog's name is Cormen. Now Polycarp has a lot of troubles. For example, Cormen likes going for a walk. Empi 阅读全文
posted @ 2018-11-22 21:30 曖殇 阅读(149) 评论(0) 推荐(0) 编辑

摘要: 链接:https://ac.nowcoder.com/acm/contest/275/A 题目描述 你在一栋楼房下面,楼房一共有n层,第i层每秒有pi的概率会扔下一个东西并砸到你 求第一秒内你被砸到的概率 输入描述: 第一行一个整数n之后有n行,第i+1行有两个整数a i ,b i ,表示 输出描述 阅读全文
posted @ 2018-11-22 21:20 曖殇 阅读(143) 评论(0) 推荐(0) 编辑

2018年11月21日

摘要: Vasiliy spent his vacation in a sanatorium, came back and found that he completely forgot details of his vacation! Every day there was a breakfast, a 阅读全文
posted @ 2018-11-21 18:21 曖殇 阅读(86) 评论(0) 推荐(0) 编辑