Compare the Triplets

  • + 7 comments

    Yeah, it needs some polish. :) In C# it would be:

    var pointsAlice = ((a0>b0)?1:0)+ ((a1>b1)?1:0)+ ((a2>b2)?1:0);
    var pointsBob = ((a0<b0)?1:0)+ ((a1<b1)?1:0)+ ((a2<b2)?1:0);
    Console.WriteLine(pointsAlice+" " +pointsBob);