import std.stdio; import std.string, std.conv, std.array, std.algorithm; void main(){ auto dates = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; int cnt = 0; foreach(m ; 1 .. 12 + 1){ foreach(d ; 1 .. dates[m] + 1){ cnt += (m == (d / 10 + d % 10)); } } cnt.writeln; }