摘要: Musical ThemesBrian DeanA musical melody is represented as a sequence of N (1 #include #include using namespace std;int n, a[5005], f[5005], ans;void ... 阅读全文
posted @ 2015-11-28 14:36 albertxwz 阅读(553) 评论(0) 推荐(0) 编辑
摘要: Starry NightIOI 98High up in the night sky, the shining stars appear in clusters of various shapes. Aclusteris a non-empty group of neighbouring stars... 阅读全文
posted @ 2015-11-15 16:49 albertxwz 阅读(416) 评论(0) 推荐(0) 编辑
摘要: Fencing the CowsHal BurchFarmer John wishes to build a fence to contain his cows, but he's a bit short on cash right. Any fence he builds must contain... 阅读全文
posted @ 2015-11-15 16:41 albertxwz 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 4300: 绝世好题Time Limit:1 SecMemory Limit:128 MBSubmit:540Solved:278[Submit][Status][Discuss]Description给定一个长度为n的数列ai,求ai的子序列bi的最长长度,满足bi&bi-1!=0(2#inclu... 阅读全文
posted @ 2015-11-13 22:21 albertxwz 阅读(653) 评论(0) 推荐(0) 编辑
摘要: COURSESTime Limit:1000MSMemory Limit:10000KTotal Submissions:19760Accepted:7784DescriptionConsider a group of N students and P courses. Each student v... 阅读全文
posted @ 2015-10-24 13:38 albertxwz 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Brackets SequenceTime Limit:1000MSMemory Limit:65536KTotal Submissions:27996Accepted:7936Special JudgeDescriptionLet us define a regular brackets sequ... 阅读全文
posted @ 2015-10-23 23:22 albertxwz 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Number of LocksTime Limit:1000MSMemory Limit:10000KTotal Submissions:1198Accepted:589DescriptionIn certain factory a kind of spring locks is manufactu... 阅读全文
posted @ 2015-10-23 20:24 albertxwz 阅读(206) 评论(0) 推荐(0) 编辑
摘要: ArbitrageTime Limit:1000MSMemory Limit:65536KTotal Submissions:18408Accepted:7796DescriptionArbitrage is the use of discrepancies in currency exchange... 阅读全文
posted @ 2015-10-23 19:58 albertxwz 阅读(160) 评论(0) 推荐(0) 编辑
摘要: PieTime Limit:1000MSMemory Limit:65536KTotal Submissions:13258Accepted:4564Special JudgeDescriptionMy birthday is coming up and traditionally I'm serv... 阅读全文
posted @ 2015-10-23 19:49 albertxwz 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Monthly ExpenseTime Limit:2000MSMemory Limit:65536KTotal Submissions:18802Accepted:7515DescriptionFarmer John is an astounding accounting wizard and h... 阅读全文
posted @ 2015-10-17 23:36 albertxwz 阅读(134) 评论(0) 推荐(0) 编辑