Descriptiontwo hundred silver dollars from the loser.""Being the most powerful man in the country,the king has so nice horses that in each class his h...
分类:
其他好文 时间:
2014-08-13 12:52:16
阅读次数:
204
Description
One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A total of M (1 ≤ M ≤ 100,000) unidirectio...
分类:
其他好文 时间:
2014-08-11 21:23:43
阅读次数:
303
Silver Cow PartyTime Limit:2000MSMemory Limit:65536KTotal Submissions:12674Accepted:5651DescriptionOne cow from each ofNfarms (1 ≤N≤ 1000) convenientl...
分类:
其他好文 时间:
2014-08-08 01:31:44
阅读次数:
367
??
Silver Cow Party
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 12633
Accepted: 5631
Description
One cow from each of N farms (1 ≤ N ≤ 1000) convenien...
分类:
其他好文 时间:
2014-08-02 18:29:13
阅读次数:
289
题意:一些牛要去某一点参加聚会,然后再回到自己家,路是单向的,问花费时间最多的那头牛最少需要花费多长时间。
思路:从聚会地点返回,相当于是从某一点到其他各个点的最短路径。从牛的家中走到聚会地点,可以把路径反过来变成从聚会地点到各个点的最短路径,两个最短路径值加起来就是每头牛所花费的最小时间,找出最大的即可。
我用了两个邻接表存路径,其实这道题用邻接矩阵存更好做,矩阵横纵坐标翻转就把路径...
分类:
其他好文 时间:
2014-08-01 00:03:40
阅读次数:
269
一、颜色名 大多数的浏览器都支持颜色名集合。 仅仅有 16 种颜色名被 W3C 的 HTML4.0 标准所支持。它们是:aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, ....
分类:
Web程序 时间:
2014-07-30 00:54:22
阅读次数:
394
这个题目很简单,虽然看上去高大上,只要找规律就行了,多看看,找找例子。-不过我花了蛮久才看出来,惭愧啊,其实就是看n.m中最小的数是奇数还是偶数。After winning gold and silver in IOI 2014, Akshat and Malvika want to have so...
分类:
其他好文 时间:
2014-07-29 11:54:46
阅读次数:
300
一、题目DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhori...
分类:
其他好文 时间:
2014-07-27 22:38:59
阅读次数:
311
DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhorizont...
分类:
其他好文 时间:
2014-07-27 22:17:59
阅读次数:
309
本页提供了被大多数浏览器支持的颜色名。提示:W3C 的 HTML 4.0 标准仅支持 16 种颜色名,它们是:aqua、black、blue、fuchsia、gray、green、lime、maroon、navy、olive、purple、red、silver、teal、white、yellow。如...
分类:
Web程序 时间:
2014-07-24 17:24:26
阅读次数:
472