#include #include #include #include int main() { int numsteps; char *stepstr; int sea_lvl; int i,valley = 0; int vcnt = 0; /* Enter your code here. Read input from STDIN. Print output to STDOUT */ scanf("%d\n", &numsteps); stepstr = malloc(numsteps); for (i = 0; i < numsteps; i++) scanf("%c", &stepstr[i]); if (numsteps < 2 || numsteps > 1000000) return(-1); sea_lvl = 0; for(i=0; i