#include <iostream> using namespace std; int res = 0; void func(int nowIndex, int lastIndex){ if(nowIndex<=lastIndex)res++; if(nowIndex*2<=lastIndex)func(nowIndex*2,lastIndex); if(nowIndex*2+1<=lastIndex)func(nowIndex*2+1,lastIndex); } int main() { int m,n; while(...