#include #include using namespace std; int main() { int a[12]= {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, s=0; // 標準入力から、空白や改行で区切られた整数と文字列を読み込む。 //cin >> a >> b; //if(a % b == 0){ // cout << a/b + 1 << endl; //}else{ // cout << a/b << endl; //} for(int i=0; i<12; i++){ for(int j=1; j<=a[i]; j++){ if((i+1) == (j/10) + (j%10)){ s++; } } } // 整数と文字列を空白で区切って、標準出力に書き出す。 cout << s << endl; return 0; }