
拓扑排序
coldfresh
那我们开始吧
展开
-
FFF at Valentine HDU - 6165 (并查集+tarjan+缩点+拓扑排序)
At Valentine’s eve, Shylock and Lucar were enjoying their time as any other couples. Suddenly, LSH, Boss of FFF Group caught both of them, and locked them into two separate cells of the jail randomly.原创 2017-08-24 21:28:37 · 379 阅读 · 0 评论 -
Peaceful Commission HDU - 1814(2-SAT)
The Public Peace Commission should be legislated in Parliament of The Democratic Republic of Byteland according to The Very Important Law. Unfortunately one of the obstacles is the fact that some deput原创 2017-09-13 20:16:08 · 357 阅读 · 0 评论 -
Ponds HDU - 5438 (拓扑排序)
Betty owns a lot of ponds, some of them are connected with other ponds by pipes, and there will not be more than one pipe between two ponds. Each pond has a value vv. Now Betty wants to remove some pon原创 2017-09-21 23:15:00 · 314 阅读 · 0 评论 -
【CodeChef - CRYPCUR】Crypto Trading(二分套tarjan、拓扑排序)
AMRExchange is the latest cryptocurrency exchange that has become very popular among cryptocurrency traders.On AMRExchange, there are N cryptocurrencies - let us denote the ith currency by Ci. M pair...原创 2018-10-18 14:39:25 · 766 阅读 · 0 评论 -
【CodeForces - 770C】Online Courses In BSU(拓扑排序)
Now you can take online courses in the Berland State University! Polycarp needs to pass k main online courses of his specialty to get a diploma. In total n courses are availiable for the passage.The ...原创 2019-03-11 20:21:51 · 548 阅读 · 0 评论