2 条题解
-
0
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
[⌐■_■] (一位老六) LV 6 @ 24 秒前
-
0
#include <bits/stdc++.h> using namespace std; const int N=10010; int a[N],b[N],g[N],k[N]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]>>b[i]>>g[i]>>k[i]; } int x,y; cin>>x>>y; int ans=-1; for(int i=1;i<=n;i++){ if(a[i]<=x&&x<=a[i]+g[i]&&b[i]<=y&&y<=b[i]+k[i]){ ans=i; } } cout<<ans; return 0; }
- 1
信息
- ID
- 380
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 10
- 标签
- 递交数
- 12
- 已通过
- 0
- 上传者