OJ-Problems-Source/HDOJ/4464_autoAC.cpp
2016-09-06 13:31:25 +08:00

20 lines
442 B
C++

#include <stdio.h>
#include <string.h>
int main() {
int n, t = 0;
while(scanf("%d", &n)!=EOF) {
int maxx = 0;
while(n--) {
int i, tmp = 0;
char s[105];
scanf("%s", s);
for(i = 0; s[i]; i++)
tmp += s[i];
if(tmp > maxx)
maxx = tmp;
}
printf("Case %d: %d\n", ++t, maxx);
}
return 0;
}