#include using namespace std; #include using namespace atcoder; using ll=long long; using Graph=vector>>; #define INF 1000000000 #define MOD 998244353 #define MAX 300000 int main(){ int N,Q; cin>>N>>Q; for(int q=0;q>S>>T; int ans=0; if(S+1==T){ cout<<1<<'\n'; continue; } ll left=0; ll right=1LL<0){ if(y1%2==1){ ans++; } y1/=2; } while(y2>0){ if(y2%2==1){ ans++; } y2/=2; } cout<