上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 33 下一页
摘要: PalindromeTime Limit: 15000MS Memory Limit: 65536KDescriptionAndy the smart computer science student was attending an algorithms c... 阅读全文
posted @ 2017-08-02 11:23 GoldenFingers 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 最长回文子串——Manacher 算法(原版的博主的代码都是用py写的,这里改成c++)c++ 算法 字符串处理 0. 问题定义最长回文子串问题:给定一个字符串,求它的最长回文子串长度。如果一个字符串正着读和反着读是一样的,那它就是回文串。下面是一些回文串的实例: ... 阅读全文
posted @ 2017-08-02 11:12 GoldenFingers 阅读(230) 评论(0) 推荐(0) 编辑
摘要: C. Star skytime limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard outputProblem Descriptio... 阅读全文
posted @ 2017-08-01 19:33 GoldenFingers 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1432 独木舟基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题Problem Descriptionn个人,已知每个人体重。独木舟承重固定,每只独木舟最多坐两个人,可以坐一个人或者两个人。显然要求总重量不超过独木舟承重,假设每个人体... 阅读全文
posted @ 2017-07-31 11:11 GoldenFingers 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 排列2Problem DescriptionRay又对数字的列产生了兴趣: 现有四张卡片,用这四张卡片能排列出很多不同的4位数,要求按从小到大的顺序输出这些4位数。Input每组数据占一行,代表四张卡片上的数字(0using namespace std;const i... 阅读全文
posted @ 2017-07-30 20:47 GoldenFingers 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Monitor题目描述Reca company makes monitors, the most popular of their models is AB999 with the screen size a × b centimeters. Because of s... 阅读全文
posted @ 2017-07-30 20:38 GoldenFingers 阅读(202) 评论(0) 推荐(0) 编辑
摘要: FactorialProblem DescriptionThe most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers f... 阅读全文
posted @ 2017-07-30 16:05 GoldenFingers 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 食物链Time Limit: 1000MS Memory Limit: 10000KDescription动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的... 阅读全文
posted @ 2017-07-30 15:46 GoldenFingers 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 老司机的奇幻漂流 UESTC - 1594Problem Description老司机在救出了女票之后,就和她在全世界旅游,有一天,他们来到了一个神奇的小岛上。 这个小岛上有三种动物,他们互相克制,就像虚空追猎凤凰石头剪刀布一样,他们形成了一个食物环。 热爱小动物... 阅读全文
posted @ 2017-07-30 14:41 GoldenFingers 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 完数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身... 阅读全文
posted @ 2017-07-29 20:52 GoldenFingers 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 33 下一页