using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace YukiCoder { class Program { static void Main(string[] args) { // 0 1 2 3 4 5 6 7 8 9 10 11 12 int[] pm = new int[] { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int n = 0; for (int i = 1; i <= 12; i++) { for (int j = 1; j <= pm[i]; j++) { if (i == (j / 10 + j % 10)) { //Console.WriteLine(i + " " + j); n++; } } } Console.WriteLine(n); Console.ReadLine(); } } }