递归:(超时) #include <iostream> #include <algorithm> #include <vector> #include <string> #include <climits> #include <stack> using namespace std; void helperCnt(int index,int t, int& res, int a, int b) { if (index > b) return; if (index >= a){ res += 1; }...