随笔分类 -  UVa

UVa-10382 Watering Grass **
摘要:/* * Uva-10382-Watering Grass.cpp * 特别注意精度。。(感觉这道题的判题有问题,开始怎么交都WA,,过两天什么都没改,再交就AC了 , 汗。。 * * 详细代码注释: http://apps.hi.baidu.com/share/detail/24628400 * * Created on: 2011-10-3 * Author: */#include <cstdio>#include <cmath>#include <algorithm>using namespace std;const int maxN = 10000 阅读全文

posted @ 2011-10-06 23:42 龙豆 阅读(467) 评论(0) 推荐(0) 编辑

UVa-10020 Minimal coverage **
摘要:1 /* 2 * Uva-10020 最少区间覆盖-贪心 3 * 4 * 很直接的贪心。。 详见刘汝佳 《奥赛入门经典》 5 * 6 * 测试数据: http://www.algorithmist.com/index.php/UVa_10020#Input 7 * 8 */ 9 10 #include <cstdio>11 #include <algorithm>12 using namespace std;13 14 const int maxN = 100000 + 5;15 int caseNum, m, intervalNum, ansList[maxN];16 阅读全文

posted @ 2011-10-04 23:32 龙豆 阅读(803) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示