#include #include using namespace std; int main(){ int c[]={31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int cnt = 0; for(int i=0; i<12; i++){ int month = i+1; for(int j=1;j<=c[i];j++){ int ten = j/10; int one = j%10; if(ten+one==month){ cnt++; } } } cout << cnt << endl; }