上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 58 下一页
摘要: From beginning till end, this message has been waiting to be conveyed. For a given unordered multiset of n lowercase English letters ("multi" means th 阅读全文
posted @ 2017-09-02 18:39 樱花落舞 阅读(190) 评论(0) 推荐(0)
摘要: Connect the countless points with lines, till we reach the faraway yonder. There are n points on a coordinate plane, the i-th of which being (i, yi). 阅读全文
posted @ 2017-09-02 18:18 樱花落舞 阅读(238) 评论(0) 推荐(0)
摘要: Where do odds begin, and where do they end? Where does hope emerge, and will they ever break? Given an integer sequence a1, a2, ..., an of length n. D 阅读全文
posted @ 2017-09-02 18:07 樱花落舞 阅读(214) 评论(0) 推荐(0)
摘要: 题意:就是一个集合分开,有两种区分 对子:两个相同数字,顺子:连续三个不同数字,问最多分多少个 解法:贪心,如果当前数字不构成顺子就取对子 /2,如果可以取顺子,那么先取顺子再取对子 阅读全文
posted @ 2017-08-31 16:05 樱花落舞 阅读(483) 评论(2) 推荐(0)
摘要: 题意:删除指定数字,求剩下数字的与或非值 解法:保存一下前缀和后缀 阅读全文
posted @ 2017-08-31 15:54 樱花落舞 阅读(267) 评论(0) 推荐(0)
摘要: 解法:发现。。最多15个,那么。。暴力一下啦 阅读全文
posted @ 2017-08-31 15:50 樱花落舞 阅读(252) 评论(0) 推荐(0)
摘要: 1001 求个绝对值比较大小喽 1002 把字符串出现的字母记录一下,然后遍历a-z,谁第一个没出现就输出谁 1003 Problem Statement We have N sticks with negligible thickness. The length of the i-th stick 阅读全文
posted @ 2017-08-20 23:43 樱花落舞 阅读(458) 评论(1) 推荐(1)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=6144 解法:一个简单的模拟 阅读全文
posted @ 2017-08-18 19:43 樱花落舞 阅读(231) 评论(0) 推荐(0)
摘要: Problem Description 度度熊喜欢着喵哈哈村的大明星——星星小姐。 为什么度度熊会喜欢星星小姐呢? 首先星星小姐笑起来非常动人,其次星星小姐唱歌也非常好听。 但这都不是最重要的,最重要的是,星星小姐拍的一手好代码! 于是度度熊关注了星星小姐的贴吧。 一开始度度熊决定每天都在星星小姐的 阅读全文
posted @ 2017-08-17 01:00 樱花落舞 阅读(285) 评论(0) 推荐(0)
摘要: Problem Description 根据小学数学的知识,我们知道一个正整数x是3的倍数的条件是x每一位加起来的和是3的倍数。反之,如果一个数每一位加起来是3的倍数,则这个数肯定是3的倍数。现在给定进制P,求有多少个B满足P进制下,一个正整数是B的倍数的充分必要条件是每一位加起来的和是B的倍数。 阅读全文
posted @ 2017-08-17 00:13 樱花落舞 阅读(218) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 58 下一页