摘要: 这题一看就想用线段树或数状数组做,过了以后再上网搜别人的解法,发现有人居然没用线段树或数状数组,利用类似部分和的思想,太强大了!/* * hdu1556/win.cpp * Created on: 2011-11-13 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <ctime>#include <iostream>#include <algorithm>#includ 阅读全文
posted @ 2011-11-13 16:53 moonbay 阅读(213) 评论(0) 推荐(0) 编辑