using namespace std; #include #define BEGIN ios_base::sync_with_stdio(0);cin.tie(0); #define END return EXIT_SUCCESS; #define FOR(I,A,B) for(int (I)=(A);(I)<(B);++(I)) #define ALL(C) (C).begin(),(C).end() inline void solve() { int DAY[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int ans=0; FOR(month,1,13) { FOR(day,1,DAY[month]+1) { int x=day,y=0; while(x) { y+=x%10; x/=10; } if(month==y) ans++; } } cout<