FreeBSD: the great problem of updating from 5.4 to 6.0

There happened few things when I updated FreeBSD from 5.3 to 5.4, 5.2.1 to 5.3, and so on. But when I updated from 5.4 to 6.0, many problems appeared.
First, for the version of the libraries has inreased, now there are 2 versions of libraries in my FreeBSD. For instance, libc.so.5 and libc.so.6, libstdc++, and so on. This makes my programs work illeagally. I have to get many program again for 6.0, such as Xorg, wmaker, esound, rxvt, scim, and so on. This costs my network hours a lot, and costs my time a lot. For example, XMMS is made up from many parts, and it seems like that I have to update all these parts!!
Second, the scim doesn’t work on new version. Maybe this problem happened because of the two versions of library, the problems are strange. So I can’t enter Chinese now.
But, by the way, I can update my firefox from 1.0.6 to 1.5.0.1…
The new version of TabMix Plus enables using roller to change between the tabs. This is a new feature(although it worked in the old version(0.2.x) in Windows…)

Hopcroft-Karp:Finally

Ural 1109 AC 0.125s 11xxKB
终于是AC了……
在此仰视+感谢Maigo大牛……
去OIBH,看见有Maigo的程序
下载,随机测试,小数据没有问题……
改大规模,发现竟然读数据RTE了……
存边数的变量开成smallint了……
汗…… 改了就AC了
Maigo的程序只有6x行…… 我的现在有18x行……
本地测试,感觉Maigo的程序还快一些……
强悍……
另:似乎Hopcroft-Karp实际上可能没有DFS的快…… 汗……