摘要: 题目描述: 最近,阿Q开了一间宠物收养所。收养所提供两种服务:收养被主人遗弃的宠物和让新的主人领养这些宠物。每个领养者都希望领养到自己满意的宠物,阿Q根据领养者的要求通过他自己发明的一个特殊的公式,得出该领养者希望领养的宠物的特点值a(a是一个正整数,a<2^31),而他也给每个处在收养所的宠物一个 阅读全文
posted @ 2017-11-20 16:55 LittleOrange 阅读(197) 评论(0) 推荐(0) 编辑
摘要: A. QAQ "QAQ" is a word to denote an expression of crying. Imagine "Q" as eyes with tears and "A" as a mouth. Now Diamond has given Bort a string consi 阅读全文
posted @ 2017-11-20 00:35 LittleOrange 阅读(436) 评论(0) 推荐(0) 编辑
摘要: A. Greed Jafar has n cans of cola. Each can is described by two integers: remaining volume of cola ai and can's capacity bi (ai ≤ bi). Jafar has decid 阅读全文
posted @ 2017-11-20 00:25 LittleOrange 阅读(379) 评论(0) 推荐(0) 编辑