#include using namespace std; int main() { int days[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int cnt = 0; for(int i=1; i<=12; i++) { int m = (i%10) + (i/10); for(int j=1; j<=days[i-1]; j++) { int d = (j%10) + (j/10); cnt += m == d; } } cout << cnt << endl; }