摘要: /* * hdu1872/win.cpp * Created on: 2011-9-11 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <algorithm>using namespace std;typedef struct { char name[55]; int score;} Student;bool operator<(const Student &s1, const 阅读全文
posted @ 2011-09-11 23:49 moonbay 阅读(165) 评论(0) 推荐(0)
摘要: 判断一个环形的字符串是否对称,其实只需要一一尝试以每一个字符作为中间位置即可。/* * hdu3793/win.cpp * Created on: 2011-9-11 * Author : ben */#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <algorithm>using namespace std;const int MAXN = 105;char str[MAXN];void work();int main() { 阅读全文
posted @ 2011-09-11 22:12 moonbay 阅读(186) 评论(0) 推荐(0)