SHARE
TWEET

Untitled

a guest Jun 27th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int[,] grd = {{ 2, 0, 6, 8, 7, 0, 0, 0, 0 },                        
  2.              { 0, 0, 9, 4, 1, 0, 0, 2, 3 },                          
  3.              { 0, 1, 0, 0, 0, 0, 0, 5, 6 },                          
  4.              { 0, 0, 5, 0, 4, 0, 0, 7, 8 },                          
  5.              { 7, 6, 0, 0, 8, 9, 4, 1, 0 },                          
  6.              { 0, 8, 0, 6, 0, 0, 0, 0, 0 },                          
  7.              { 0, 9, 0, 0, 0, 8, 0, 6, 4 },                          
  8.              { 8, 0, 0, 5, 0, 0, 1, 0, 2 },                          
  9.              { 0, 5, 2, 1, 9, 0, 0, 0, 0 }};
  10.      
  11. string unprocesed_nums = Console.ReadLine();
  12. string[] split_nums = unprocesed_nums.Split(' ');
  13. List<int> nums_list = new List<int>();
  14. int nums;
  15. foreach (string s in split_nums)
  16. {
  17.     if (Int32.TryParse(s, out nums))
  18.     nums_list.Add(nums);
  19.  }
  20.     int[] board = nums_list.ToArray();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top