Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _1.Shockwave
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- int[,] primary = new int[n, m];
- string input = Console.ReadLine();
- while (input != "Here We Go")
- {
- string[] coordinates = input.Split(' ');
- int x1 = int.Parse(coordinates[0]);
- int y1 = int.Parse(coordinates[1]);
- int x2 = int.Parse(coordinates[2]);
- int y2 = int.Parse(coordinates[3]);
- for (int i = x1; i <= x2; i++)
- {
- for (int j = y1; j <= y2; j++)
- {
- primary[i, j]++;
- }
- }
- input = Console.ReadLine();
- }
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < m; j++)
- {
- Console.Write(primary[i, j]);
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement