摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
4300: 绝世好题Time Limit:1 SecMemory Limit:128 MBSubmit:540Solved:278[Submit][Status][Discuss]Description给定一个长度为n的数列ai,求ai的子序列bi的最长长度,满足bi&bi-1!=0(2#inclu... 阅读全文
摘要:
COURSESTime Limit:1000MSMemory Limit:10000KTotal Submissions:19760Accepted:7784DescriptionConsider a group of N students and P courses. Each student v... 阅读全文
摘要:
Brackets SequenceTime Limit:1000MSMemory Limit:65536KTotal Submissions:27996Accepted:7936Special JudgeDescriptionLet us define a regular brackets sequ... 阅读全文
摘要:
Number of LocksTime Limit:1000MSMemory Limit:10000KTotal Submissions:1198Accepted:589DescriptionIn certain factory a kind of spring locks is manufactu... 阅读全文
摘要:
ArbitrageTime Limit:1000MSMemory Limit:65536KTotal Submissions:18408Accepted:7796DescriptionArbitrage is the use of discrepancies in currency exchange... 阅读全文
摘要:
PieTime Limit:1000MSMemory Limit:65536KTotal Submissions:13258Accepted:4564Special JudgeDescriptionMy birthday is coming up and traditionally I'm serv... 阅读全文
摘要:
Monthly ExpenseTime Limit:2000MSMemory Limit:65536KTotal Submissions:18802Accepted:7515DescriptionFarmer John is an astounding accounting wizard and h... 阅读全文