摘要: #include #include int main(){ int num, i, k, j, max, times; char **array; char maxColor[21]; while (scanf("%d", &num) != EOF && num != 0) { getchar(); array = (char **)malloc(sizeof(char*)*num); for (i = 0; i max) { max = times; ... 阅读全文
posted @ 2013-12-22 16:34 丁香树 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int main(int aegv, char argv[]){ map colormap; int num; while (cin >> num && num) { colormap.clear(); string color; for (int i = 0; i > color; colormap[color]++; } int max = 0; string maxC... 阅读全文
posted @ 2013-12-22 15:18 丁香树 阅读(310) 评论(0) 推荐(0) 编辑