- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 110307 Doublets
This solution gets "Wrong answer" result inwww.programming-challenges.com/,but it gets "Accepted" result inhttp://uva.onlinejudge.org/.According to the explanation in http://www.programm
2013-09-23 17:23:22 575
原创 110306 File Fragmentation
#include #include #include #include #include #include using namespace std;#define MAX_CHAR_IN_LINE (256 + 2)static char s_buf[MAX_CHAR_IN_LINE];class Fragments{private: typedef map*>::i
2013-09-13 14:36:07 432
原创 110305 Automated Judge Script
#include #include #include #include using namespace std;#define MAX_LINES 100#define MAX_CHARS_IN_LINE (100 + 2)enum ComparisonResult_t{ ACCEPTED = 0, PRESENTATION_ERROR, WRONG_ANSWER};
2013-09-12 15:16:24 429
原创 110304 Crypt Kicker II
#include #include #include #include #include using namespace std;class CryptRule{public: CryptRule() { Clear(); } bool AddRule(char encryptedLetter, char decryptedLetter) { if (m_r
2013-09-05 13:24:28 837
原创 110303 Common Permutation
#include #include #include #include using namespace std;#define MAX_CHAR_IN_LINE 1002static void FormatStr(char* line){ int len = strlen(line); if (line[len - 1] == '\n') { line[len - 1
2013-09-04 16:52:15 641
原创 110302 Where's Waldorf (Where s Waldorf)
#include #include using namespace std;#define MAX_CHAR_IN_LINE 50static bool EastFind(char input[MAX_CHAR_IN_LINE][MAX_CHAR_IN_LINE], int rows, int cols, char* word, int wordLen, int curRow, in
2013-09-04 14:12:34 695
原创 110301 WERTYU
#include #include #include #include using namespace std;static void InitMapByChars(map& charMap, const char* info){ int nLen = strlen(info); for (int i = 1; i < nLen; ++i) charMap.insert(p
2013-09-03 17:12:11 439
原创 110208 Yahtzee
#include #include #include #include #include using namespace std;class Calculator{public: Calculator() { m_diceInTotalRounds.push_back(NULL); } ~Calculator() { for (size_t i = 1; i
2013-09-02 17:50:02 599
c++语言的设计和演化
2009-07-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人