#include using namespace std; int main(){ const int day[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int ans = 0; for (int m = 1; m <= 12; m++){ for (int d = 0; d <= day[m]; d++){ ans += (m == d / 10 + d % 10); // } } cout << ans << endl; return 0; }