摘要:
Most Distant Point from the Sea 【题目链接】 " Most Distant Point from the Sea " 【题目类型】 半平面交 &题解: 蓝书279 二分答案,判断平移后的直线的半平面交是否为空. 模板是照着敲的,还有一些地方不是很懂, 应该还要慢慢体会 阅读全文
摘要:
The Great Divid 【题目链接】 " The Great Divid " 【题目类型】 点在多边形内 &题解: 蓝书274, 感觉我的代码和刘汝佳的没啥区别,可是我的就是wa,所以贴一发刘汝佳的吧. 感觉这题最好的地方就是让我大致懂了点在多边形内的判断,写的好神奇,没有做一条直线,而是2 阅读全文
摘要:
Dog Distance 【题目链接】 " Dog Distance " 【题目类型】 几何 &题解: 蓝书的题,刘汝佳的代码,学习一下 &代码: c++ // UVa11796 Dog Distance // Rujia Liu include include include using name 阅读全文
摘要:
Remember the Word 【题目链接】 " Remember the Word " 【题目类型】 递推+Trie &题解: 蓝书P209,参考的别人公开代码 &代码: c++ include include include include include include include i 阅读全文
摘要:
统计难题 【题目链接】 " 统计难题 " 【题目类型】 Trie &题解: Trie的模板题,只不过这题坑点在没给数据范围,改成5e5就可以过了,用的刘汝佳蓝书模板 &代码: c++ include include include include include include include in 阅读全文
摘要:
归并排序求逆序数 理解原理,这样才可以灵活运用 【时间复杂度】$O(nlogn)$ &代码: c++ include include include include include include include include include include using namespace std 阅读全文
摘要:
So Easy 【题目链接】 " So Easy " 【题目类型】 矩阵解公式 &题解: 感觉这种类型的题都是一个套路,这题和hdu 2256就几乎是一样的. 所以最后2Xn就是答案 【时间复杂度】$O(logn)$ &代码: c++ include include include include 阅读全文
摘要:
Another kind of Fibonacci 【题目链接】 " Another kind of Fibonacci " 【题目类型】 矩阵+ll超时必须用int&输入必须取模&M必须是int类型 &题解: 算出矩阵的每一行一定要和初始化的那个矩阵不一样,如果有一项是一样的,那么就推不出最后的答 阅读全文