| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81248 | sh25_zhangyy | 铺地毯(Day 1) | C++ | 通过 | 8 MS | 408 KB | 454 | 2026-01-04 15:43:12 |
#include <bits/stdc++.h> using namespace std ; int n ; const int N = 1e4 + 10 ; int a[N] , b[N] , g[N] , k[N] ; int x , y ; int main() { cin >> n ; for(int i = 1 ; i <= n ; i++ ) cin >>a[i] >> b[i] >> g[i] >> k[i] ; cin >> x >> y ; int ans = -1 ; for(int i = 1 ; i <= n ; i++ ) if(x >= a[i] && y >= b[i] && x <= a[i] + g[i] && y <= b[i] + k[i]) ans = i ; cout << ans << endl ; return 0 ; }