Exemplo n.º 1
0
    void Solve()
    {
        var N     = F();
        var tofus = new Tofu[N];
        var xor   = 0;

        for (var i = 0; i < N; i++)
        {
            tofus[i] = new Tofu(G());
            var M = F();
            for (var j = 0; j < M; j++)
            {
                tofus[i].Add(G());
            }
            foreach (var h in tofus[i].Count())
            {
                xor ^= h;
            }
        }
        WriteLine(xor != 0 ? "WIN" : "LOSE");
    }
Exemplo n.º 2
0
 public Fridge(FindLostyGame game) : base(game, false, "Fridge")
 {
     Tofu = new Tofu(game);
     this.Inventory.InitialAdd(Tofu);
 }