#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; bool rcmp(int a, int b) { return a>b; } typedef long long LL; class mypcmp { public: bool operator()(const int& a, const int& b) { return a'9') assert(0); x = sscanf(ib, "%d", &n); if (x!=1) assert(0); c=0; for (i=0; i