#define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)<>N>>M; LL ama = (N%(M*1000))/1000; rep(i,maxC)rep(j,maxC)c[i][j]=-1; //N C ama P(ccc(M,ama)); return 0; }