这题其实我不会,随便找了几个特例算算觉得答案可能是(n-1)/2就打了交,居然过了。可是不太理解这种做法的正确性,上网搜一下,也没人写解题报告,改天问问老师去……
/* * hdu1273/win.cpp * Created on: 2012-10-23 * Author : ben */#include#include #include #include #include #include #include #include #include #include
本文共 677 字,大约阅读时间需要 2 分钟。
这题其实我不会,随便找了几个特例算算觉得答案可能是(n-1)/2就打了交,居然过了。可是不太理解这种做法的正确性,上网搜一下,也没人写解题报告,改天问问老师去……
/* * hdu1273/win.cpp * Created on: 2012-10-23 * Author : ben */#include#include #include #include #include #include #include #include #include #include
转载于:https://www.cnblogs.com/moonbay/archive/2012/10/23/2736189.html