using System.Collections.Generic;
public int row {get; set;}
public int col {get; set;}
private string[] result = {"C", "FR", "MR", "LR", "ES"};
private int[,] board = new int[3,9];
public string GetWinningStreak(string[,] ticket, int[] sequence)
string ans = string.Empty;
for(int i = 0; i < sequence.Length; i++)
win = MakeMove(ref ticket, Convert.ToString(sequence[i]), ref ans);
private bool MakeMove(ref string[,] ticket, string num, ref string ans)
Duo d = Find(ref ticket, num);
return CheckWin(ref ticket, d.row, d.col, ref ans);
private bool CheckWin(ref string[,] ticket, int row, int col, ref string ans)
for(int i = 0; i < 9; i++)
ans = ticket[row, col] + result[1];
ans = ticket[row, col] + result[2];
ans = ticket[row, col] + result[3];
ans = ticket[row, col] + result[4];
private bool IsSeven(int row, int col)
for(int i = 0; i < 3; i++)
for(int j = 0; j < 9; j++)
private Duo Find(ref string[,] ticket, string num)
for(int i = 0; i < ticket.GetLength(0); i++)
for(int j = 0; j < ticket.GetLength(1); j++)
public static void Main(string[] args)
string[, ] ticket = new string[3, 9] {{"","11","21","32","","","62","","82"},
{"1","","23","39","","57","","74",""},
{"5","17","","","42","","66","79",""}
int[] sequence = new int[] {17,1,83,39,60,23,99,45,82,57,8,79,42};
Bingo bingo = new Bingo();
Console.WriteLine(bingo.GetWinningStreak(ticket, sequence));