All pastes #2076156 Raw Edit

Stuff

public text v1 · immutable
#2076156 ·published 2011-06-07 13:00 UTC
rendered paste body
using System;    

public class UserMainCode  
{   
	//Assume following return types while writing the code for this question.        
	public static int output1;    
	
	public static void GetBuildingCount(int marineCount,int[,] marinePositions)       
	{           
				
		int x ,y; 
	        bool[] markx =new bool[9]; 
	        bool[] marky =new bool[9]; 
	        
	 for(output1 = 0; output1 < marineCount;(output1)++) 
	        { 
	            x = marinePositions[output1,0]; 
	            markx[x] =true; 
	            y = marinePositions[output1,1]; 
	            marky[y] = true; 
	        } 
	        x = 0; 
	        y = 0; 
     for(output1 = 0;output1 < 9;(output1)++) 
	        { 
	            if(markx[output1] == true) 
	            { 
	                (x)++; 
	            } 
	            if(marky[output1] == true) 
	            { 
	                (y)++; 
	            } 
	        } 
	        output1=(x+y)<<3;
	        output1 -= x * y; 
	
		
		
		
				
		
		
		
		//Write code here       
	}  
}