Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace mozesieuda
- {
- class Program
- {
- static void Main(string[] args)
- {
- int? max = 0, local = 0;
- FilesStream.GetInput();
- foreach (var node in FilesStream.list)
- {
- if (node.currentrow == 5 && node.currentcolumn == 2)
- {
- Console.WriteLine();
- }
- if (FilesStream.map[node.currentrow, node.currentcolumn] == 'x')
- {
- FilesStream.map[node.currentrow, node.currentcolumn] = 'a';
- local = node.Counter();
- if (max < local)
- {
- max = local;
- }
- }
- }
- Console.WriteLine(max);
- Console.WriteLine(FilesStream.counter);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement