Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- class TicTacToe
- {
- static void Main()
- {
- int x = int.Parse(Console.ReadLine());
- int y = int.Parse(Console.ReadLine());
- int v = int.Parse(Console.ReadLine());
- int index = y*3 + x + 1;
- int valueC = v + index - 1;
- long result = (long)Math.Pow(valueC, index);
- Console.WriteLine(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment