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;
- using System.Numerics;
- namespace Tic_Tac_Toe_Power
- {
- class Program
- {
- static void Main(string[] args)
- {
- int y = int.Parse(Console.ReadLine());
- int x = int.Parse(Console.ReadLine());
- int v = int.Parse(Console.ReadLine());
- int one = 1;
- int[] ticTacToe = new int[9];
- double x1 = 0;
- double x2 = 0;
- for (int a = 0; a < 3; a++)
- {
- for (int b = 0; b < 3; b++)
- {
- ticTacToe[a] = one;
- one++;
- int multi = ticTacToe[a];
- if(x == a && y == b)
- {
- x2 = multi;
- }
- }
- }
- for (int a = 0; a < 3; a++)
- {
- for (int b = 0; b < 3; b++)
- {
- ticTacToe[a] = v;
- v++;
- int num = ticTacToe[a];
- if (x == a && y == b)
- {
- x1 = num;
- }
- }
- }
- BigInteger z = 1;
- for(int i = 0; i < x2; i++)
- {
- z *= (BigInteger)x1;
- }
- Console.WriteLine(z);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment