#include int main(int argc, char *argv[]){ int a[] = {31,28,31,30,31,30,31,31,30,31,30,31}; int b = 0; for(int i = 0; i< 12; i++) { for(int j = 1; j <= a[i]; j++) { if( i + 1 == j / 10 + j % 10) b++; } } printf("%d\n", b); return 0; }