摘要:
//////////////////////////////////////////////////////////////////////////////2353944 2010-11-19 22:35:25 Accepted 2397 C 40 164 VRS//2397 田忌赛马 贪心//1 田忌的最快与齐王最快比,田忌快则PK掉,田忌慢则用田忌最慢的PK齐王最快;//2 快马... 阅读全文
posted @ 2010-11-23 14:10
VRS
阅读(269)
评论(0)
推荐(0)
摘要:
//////////////////////////////////////////////////////////////////////////////////////////2352935 2010-11-18 15:33:40 Accepted 1117 C 0 160 VRS//1117 哈夫曼树//注意Build_HuffmanTree()这个函数只支持至少两个Node来... 阅读全文
posted @ 2010-11-23 14:09
VRS
阅读(240)
评论(0)
推荐(0)
摘要:
///////////////////////////////////////////////////////////////////1161 多湖钓鱼 枚举+贪心 也是POJ 1042//其一,John在路上花费的时间只与最终到达最远的湖有关;其二,只需考虑在不同的湖停留的时间,不要考虑先后。//所以可以对于最终到达第1到第25个湖这n种情况,先扣除路上时间,在剩下的时间不断用贪心挑可钓鱼数最大... 阅读全文
posted @ 2010-11-23 14:08
VRS
阅读(554)
评论(0)
推荐(0)
摘要:
/////////////////////////////////////////////////////////////////////////////////////////2351692 2010-11-17 16:53:46 Accepted 1029 C 0 164 VRS//1029 房间移桌子 贪心法#include<stdio.h>#include<... 阅读全文
posted @ 2010-11-23 14:06
VRS
阅读(214)
评论(0)
推荐(0)
摘要:
/////////////////////////////////////////////////////////////////////////////////////2351191 2010-11-17 00:58:08 Accepted 1025 C 10 216 VRS//1025 木棍分堆 贪心法 分别通过了C++版本和C版本//#include<stdlib.h&g... 阅读全文
posted @ 2010-11-23 14:05
VRS
阅读(237)
评论(0)
推荐(0)
摘要:
////////////////////////////////////////////////////////////////////////2351382 2010-11-17 13:13:26 Accepted 1007 C 310 156 VRS//1007 数论题目#include<stdio.h>int main(){ double x,psix,k,sum;... 阅读全文
posted @ 2010-11-23 14:03
VRS
阅读(324)
评论(0)
推荐(0)
摘要:
///////////////////////////////////////2350896 2010-11-16 19:50:24 Accepted 1852 C 0 160 VRS//1852 桌球碰撞 水题#include<stdio.h>#include<math.h>#define pi 3.1415926int main(){ int row,co... 阅读全文
posted @ 2010-11-23 14:00
VRS
阅读(209)
评论(0)
推荐(0)
摘要:
//////////////////////////////////////////////////////////////////////2350677 2010-11-16 17:00:04 Accepted 2544 C++ 0 180 VRS//水题//////////////////#include<stdlib.h>#include<stdio.h>#inclu... 阅读全文
posted @ 2010-11-23 13:59
VRS
阅读(201)
评论(0)
推荐(0)
浙公网安备 33010602011771号