示例#1
0
        void Solve(StreamScanner ss, StreamWriter sw)
        {
            //---------------------------------
            var N   = ss.Next(int.Parse);
            var ans = true;

            for (var i = 0; i < N; i++)
            {
                var t = ss.Next(int.Parse);
                var x = ss.Next(int.Parse);
                var y = ss.Next(int.Parse);
                ans &= t >= x + y && (t - x - y) % 2 == 0;
            }

            sw.WriteLine(ans ? "Yes" : "No");
            //---------------------------------
        }