摘要: 题目是SRM 564 DIV2的250,在小花姐的指导下,终于搞明白了TC的代码格式了。。。其实自己老早就应该学会的,类神马的,用的真是不熟。 1 #include <cstring> 2 #include <cstdio> 3 #include <string> 4 #include <iostream> 5 using namespace std; 6 char str[1000000]; 7 class FauxPalindromes 8 { 9 public:10 string classifyIt(string word)11 {12 阅读全文
posted @ 2012-12-13 12:51 Naix_x 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 题目链接考虑各种情况,然后注意敲的稳一点,忘考虑一种情况,2Y. 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <queue> 5 #include <string> 6 #include <map> 7 using namespace std; 8 char word[10001][21]; 9 char s[21]; 10 int len[10001]; 11 int Abs(int x) 12 { 13 if(x & 阅读全文
posted @ 2012-12-13 11:31 Naix_x 阅读(135) 评论(0) 推荐(0) 编辑