示例#1
0
 static void Main()
 {
     int input = Convert.ToInt32(Console.ReadLine());
     Solution s = new Solution(input);
     s.appendString(input);
     Console.ReadKey();
 }
示例#2
0
 static void Main()
 {
     string input = Console.ReadLine();
     Solution p = new Solution();
     p.convertTime(input);
     Console.ReadKey();
 }
示例#3
0
 static void Main()
 {
     Solution p = new Solution();
     int t = Convert.ToInt32(Console.ReadLine());
     for (int a0 = 0; a0 < t; a0++)
     {
         int n = Convert.ToInt32(Console.ReadLine());
         p.utopianTree(n);
     }
     p.printResult();
     Console.ReadKey();
 }
示例#4
0
 static void Main()
 {
     Solution p = new Solution();
     int t = Convert.ToInt32(Console.ReadLine());
     for (int a0 = 0; a0 < t; a0++)
     {
         string[] a_temp = Console.ReadLine().Split(' ');
         int[] input = Array.ConvertAll(a_temp, Int32.Parse);
         p.sherlockAndSquares(input);
     }
     p.printResult();
     Console.ReadKey();
 }
示例#5
0
 static void Main()
 {
     int n = Convert.ToInt32(Console.ReadLine());
     int[][] grid = new int[n][];
     for (int a_i = 0; a_i < n; a_i++)
     {
         string[] a_temp = Console.ReadLine().Split(' ');
         grid[a_i] = Array.ConvertAll(a_temp, Int32.Parse);
     }
     Solution s = new Solution(grid, n);
     s.diagonalDifference();
     Console.ReadKey();
 }
示例#6
0
 static void Main()
 {
     Solution p = new Solution();
     int t = Convert.ToInt32(Console.ReadLine());
     for (int a0 = 0; a0 < t; a0++)
     {
         string[] tokens_n = Console.ReadLine().Split(' ');
         int money = Convert.ToInt32(tokens_n[0]);
         int price = Convert.ToInt32(tokens_n[1]);
         int wrappers = Convert.ToInt32(tokens_n[2]);
         p.chocolateFeast(money, price, wrappers);
     }
     p.printResult();
     Console.ReadKey();
 }
示例#7
0
 static void Main()
 {
     Solution p = new Solution();
     int t = Convert.ToInt32(Console.ReadLine());
     string[] tokens_n;
     int n = 0;
     int k = 0;
     string[] a_temp;
     int[] a = null;
     for (int a0 = 0; a0 < t; a0++)
     {
         tokens_n = Console.ReadLine().Split(' ');
         n = Convert.ToInt32(tokens_n[0]);
         k = Convert.ToInt32(tokens_n[1]);
         a_temp = Console.ReadLine().Split(' ');
         a = Array.ConvertAll(a_temp, Int32.Parse);
         p.angryProfessor(n, k, a);
     }
     p.printResult();
     Console.ReadKey();
 }
示例#8
0
 static void Main()
 {
     Solution p = new Solution();
     int n = Convert.ToInt32(Console.ReadLine());
     string[] arr_temp = Console.ReadLine().Split(' ');
     int[] arr = Array.ConvertAll(arr_temp, Int32.Parse);
     p.cutTheSticks(n, arr);
     p.printResult();
     Console.ReadKey();
 }
示例#9
0
 static void Main()
 {
     Solution p = new Solution();
     int t = Convert.ToInt32(Console.ReadLine());
     for (int a0 = 0; a0 < t; a0++)
     {
         int n = Convert.ToInt32(Console.ReadLine());
         p.sherlockAndTheBeast(n);
     }
     p.printResult();
     Console.ReadKey();
 }