Advertisement
kabanosiek

main

Oct 25th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.04 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace mozesieuda
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             int? max = 0, local = 0;
  15.  
  16.             FilesStream.GetInput();
  17.             foreach (var node in FilesStream.list)
  18.             {
  19.                 if (node.currentrow == 5 && node.currentcolumn == 2)
  20.                 {
  21.                     Console.WriteLine();
  22.                 }
  23.  
  24.                 if (FilesStream.map[node.currentrow, node.currentcolumn] == 'x')
  25.                 {
  26.  
  27.                     FilesStream.map[node.currentrow, node.currentcolumn] = 'a';
  28.                     local = node.Counter();
  29.                     if (max < local)
  30.                     {
  31.                         max = local;
  32.                     }
  33.                 }
  34.  
  35.             }
  36.             Console.WriteLine(max);
  37.             Console.WriteLine(FilesStream.counter);
  38.             Console.ReadKey();
  39.         }
  40.     }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement