#include using namespace std; int main(){ int count=0; for(int i=0; i<12; i++){ if(i+1 == 1 || 3 || 5 || 7 || 8 || 10 || 12){ for(int j=0; j<31; j++){ if(i+1 == j%10 + j/10){ count++; } } } else if(i+1 == 4 || 6 || 9 || 11){ for(int h=0; h<30; h++){ if(i+1 == h % 10 + h /10){ count++; } } } else{ for(int k=0; k<28; k++){ if(i+1 == k% 10+ k/10){ count++; } } } } cout << count; }