摘要:
http://www.lydsy.com/JudgeOnline/problem.php?id=3299映射一下传送门即可。。#include #include #include #include #include #include #include using namespace std;#def... 阅读全文
摘要:
http://www.lydsy.com/JudgeOnline/problem.php?id=3016之前yy了一个贪心,,,但是错了,,就是枚举前后对应的字符(前面第i个和后面第i个)然后相同答案就+1,否则不操作。。QAQ然后看了题解。。。神。。首先序列肯定是偶数个,然后。。一定有n/2个‘(... 阅读全文
摘要:
http://www.lydsy.com/JudgeOnline/problem.php?id=3389显然左端点排序后,依次取。要考虑下一次取的方案:待选点为a[j].x#include #include #include #include #include #include using name... 阅读全文
摘要:
http://www.lydsy.com/JudgeOnline/problem.php?id=3390。。#include #include #include #include #include #include #include using namespace std;#define rep(i... 阅读全文
摘要:
http://www.lydsy.com/JudgeOnline/problem.php?id=3410太神了。。。。按末端点排序然后贪心取即可。QAQ#include #include #include #include #include #include #include using names... 阅读全文