THE FIRST 莫队算法. /************************************************************** Problem: 2038 User: keyboarder_zsq Language: C++ Result: Accepted Time:1644 ms Memory:2988 kb ****************************************************************/ //#include…