using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace No188 { public class Program { public static void Main(string[] args) { DateTime n = new DateTime(2015, 1, 1); DateTime end = new DateTime(2015, 12, 31); int count = 0; while(n <= end ) { string day = n.Day.ToString("00"); int d0 = int.Parse(day[0].ToString()); int d1 = int.Parse(day[1].ToString()); if (n.Month == d0 + d1) { count++; } n = n.AddDays(1); } Console.WriteLine(count); } } }