摘要: 拖了好久才写的线段树...... 大概听说它可能实在n年前,在我还是一个孩子的时候[/微笑] 恩大概我觉得有一丢丢丢像分块 //////////////////////////////////////////////////////////////////////////////////////// 阅读全文
posted @ 2017-11-09 18:53 hdsmwww 阅读(465) 评论(0) 推荐(0)
摘要: !!!血泪史!!! tmp不能设全局变量!!! 以下摘自SHHHS Tarjan 算法 一.算法简介 Tarjan 算法一种由Robert Tarjan提出的求解有向图强连通分量的算法,它能做到线性时间的复杂度。 我们定义: 如果两个顶点可以相互通达,则称两个顶点强连通(strongly conne 阅读全文
posted @ 2017-11-04 13:36 hdsmwww 阅读(173) 评论(0) 推荐(0)
摘要: Cheapest Palindrome Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 10628 Accepted: 5093 Description Keeping track of all the cows can be a 阅读全文
posted @ 2017-09-13 16:22 hdsmwww 阅读(103) 评论(0) 推荐(0)
摘要: River Hopscotch Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 15663 Accepted: 6620 Description Every year the cows hold an event featurin 阅读全文
posted @ 2017-09-02 10:42 hdsmwww 阅读(133) 评论(0) 推荐(0)
摘要: Jungle Roads Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 26726 Accepted: 12570 Description The Head Elder of the tropical island of Lag 阅读全文
posted @ 2017-07-17 10:48 hdsmwww 阅读(105) 评论(0) 推荐(0)