| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 121299 | 谢思涵 | 平台上的小球 | C++ | Wrong Answer | 16 | 0 MS | 260 KB | 458 | 2024-01-21 16:32:45 |
#include <iostream> using namespace std; int a[1100], b[1100], c[1100]; int main() { int n; cin >> n; for(int i = 1; i <= n; i++) cin >> a[i] >> b[i] >> c[i]; for(int i = 1; i <= n; i++) { int left = 0, right = 0; for(int j = 1; j <= n; j++) { if(a[j] < a[i] && b[j] < b[i] && c[j] >= c[i]) left = j; if(a[j] < a[i] && b[j] <= b[i] && c[j] > c[i]) right = j; } cout << left << " " << right << endl; } return 0; }