摘要: 这题其实我不会,随便找了几个特例算算觉得答案可能是(n-1)/2就打了交,居然过了。可是不太理解这种做法的正确性,上网搜一下,也没人写解题报告,改天问问老师去……/* * hdu1273/win.cpp * Created on: 2012-10-23 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <ctime>#include <iostream>#include <alg 阅读全文
posted @ 2012-10-23 21:00 moonbay 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 找出足够的相遇或追及的时间,排个序输出就可以了。/* * hdu1275/win.cpp * Created on: 2012-10-23 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <ctime>#include <iostream>#include <algorithm>#include <queue>#include <set>#incl 阅读全文
posted @ 2012-10-23 19:55 moonbay 阅读(160) 评论(0) 推荐(0) 编辑