|  | @@ -8,7 +8,7 @@ const int N = 100;
 | 
	
		
			
				|  |  |  const int M = 10;
 | 
	
		
			
				|  |  |  const int S = 60;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -char row[M + 1];
 | 
	
		
			
				|  |  | +char row[M + 1]; // Stores each row of map
 | 
	
		
			
				|  |  |  int map[N]; // Bitmap of each row, 1 stands for hill
 | 
	
		
			
				|  |  |  int st[S], s; // All valid state
 | 
	
		
			
				|  |  |  int dp[N][S][S]; // dp[i][j][k] means max cnt at row i, when row i at state j and row i-1 at state k
 |