#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include using namespace std; template vector smallest_prime_factors(T n){ vector spf(n+1); for(int i=0;i<=n;i++) spf[i]=i; for(T i=2;i*i<=n;i++){ if(spf[i]==i){ //素数だったら for(T j=i*i;j<=n;j+=i){ if(spf[j]==j) spf[j]=i; //iを持つ整数かつまだ素数が決まっていないなら } } } return spf; } //高速因数分解(クエリ<=10^5,整数<=10^6程度) template bool factolization(T x,vector &spf){ int cnt=0; while(x!=1) { x/=spf[x]; cnt++; if(cnt>=3){ break; } } if(cnt>=3) return true; return false; } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); constexpr int MAX=400040; auto spf=smallest_prime_factors(MAX); vector A(MAX+1); for(int i=1;i S(MAX+2); for(int i=1;i>t; while(t--){ ll p,l,r; cin>>p>>l>>r; l-=p,r-=p; if(l>0 && r>0) cout<