Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Numerics;
- namespace bitShiftMatrix
- {
- class Program
- {
- static void Main(string[] args)
- {
- int inputRows = int.Parse(Console.ReadLine());
- int inputCols = int.Parse(Console.ReadLine());
- int sizeOfArray = int.Parse(Console.ReadLine());
- double[] size = Console.ReadLine().Split(' ').Select(double.Parse).ToArray();
- int step = 0;
- BigInteger[,] matrix = new BigInteger[inputRows, inputCols];
- BigInteger coef = Math.Max(inputRows,inputCols);
- for (int rows = inputRows - 1; rows >= 0; rows--)
- {
- for (int cols = 0; cols < inputCols; cols++)
- {
- matrix[rows, cols] = (BigInteger)Math.Pow(2, cols + rows);
- }
- }
- Console.WriteLine(matrix[3,0]);
- for (int rows = inputRows - 1; rows >= 0; rows--)
- {
- for (int cols = 0; cols < inputCols; cols++)
- {
- Console.Write(matrix[rows, cols] + " ");
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement