Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Luviana
  8. {
  9.     class Program
  10.     {
  11.         private static String[] Matches = new[]
  12.         {
  13.             "FB", "SUP", "BJK", "BUR", "DP", "GAL", "GS", "IW", "AUR", "RYL", "GAL", "BJK", "BUR", "FB", "RYL", "SUP",
  14.             "IW", "AUR", "GS", "DP", "FB", "RYL", "SUP", "IW", "BJK", "GS", "AUR", "DP", "BUR", "GAL", "AUR", "BJK",
  15.             "DP", "SUP", "GS", "BUR", "IW", "RYL", "GAL", "FB", "RYL", "DP", "GAL", "GS", "SUP", "BJK", "FB", "IW",
  16.             "BUR", "AUR", "DP", "IW", "AUR", "GAL", "GS", "FB", "BJK", "RYL", "SUP", "BUR", "RYL", "BUR", "GS", "AUR",
  17.             "FB", "DP", "GAL", "SUP", "IW", "BJK", "SUP", "GS", "RYL", "GAL", "BUR", "IW", "AUR", "FB", "BJK", "DP",
  18.             "GS", "RYL", "IW", "GAL", "FB", "BJK", "DP", "BUR", "AUR", "SUP",
  19.             "BUR", "BJK", "IW", "GS", "RYL", "AUR", "GAL", "DP", "SUP", "FB", "AUR", "IW", "SUP", "RYL", "BJK", "GAL",
  20.             "FB", "BUR", "DP", "GS", "IW", "SUP", "GAL", "BUR", "DP", "AUR", "GS", "BJK", "RYL", "FB", "BUR", "GS",
  21.             "RYL", "IW", "BJK", "AUR", "SUP", "DP", "FB", "GAL", "DP", "RYL", "BJK", "SUP", "GS", "GAL", "IW", "FB",
  22.             "AUR", "BUR", "GAL", "AUR", "BUR", "SUP", "IW", "DP", "FB", "GS", "RYL", "BJK", "SUP", "GAL", "AUR", "GS",
  23.             "DP", "FB", "BUR", "RYL", "BJK", "IW", "IW", "BUR", "DP", "BJK", "FB", "AUR", "GAL", "RYL", "GS", "SUP",
  24.             "BUR", "DP", "RYL", "GS", "SUP", "AUR", "BJK", "FB", "GAL", "IW"
  25.         };
  26.  
  27.         public struct Match
  28.         {
  29.             public String LTeam;
  30.             public String RTeam;
  31.         }
  32.  
  33.         private static List<List<List<Match>>> TCL = new List<List<List<Match>>>();
  34.        
  35.         static void Main(string[] args)
  36.         {
  37.             int week = 0;
  38.             int day = 0;
  39.             TCL.Add(new List<List<Match>>());
  40.             TCL[0].Add(new List<Match>());
  41.             for (int i = 0; i < Matches.Length; i += 2)
  42.             {
  43.                 String LTeam = Matches[i];
  44.                 String RTeam = Matches[i + 1];
  45.  
  46.                 if (i % 20 == 0 && i != 0)
  47.                 {
  48.                     week++;
  49.                     TCL.Add(new List<List<Match>>());
  50.                 }
  51.  
  52.                 if (i % 10 == 0 && i != 0)
  53.                 {
  54.                     if (day == 1)
  55.                         day = 0;
  56.                     else
  57.                         day++;
  58.  
  59.                     TCL[week].Add(new List<Match>());
  60.                 }
  61.  
  62.                 TCL[week][day].Add(new Match(){LTeam = LTeam, RTeam = RTeam});
  63.             }
  64.  
  65.             String team1 = TCL[0][0][0].LTeam;
  66.             String team2 = TCL[0][0][0].RTeam;
  67.         }
  68.     }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement