#include using namespace std; int main() { int month[12]={1,2,3,4,5,6,7,8,9,10,11,12}; int day[12]={31,28,31,30,31,30,31,31,30,30,30,31}; int happy_day=0; for(int i=0; i<12; i++) { for(int j=1; j<=day[i]; j++) { if(month[i]/10+month[i]%10 == j/10+j%10){ happy_day++; } } } cout << happy_day << endl; return 0; }