Submission #3002391
Source Code Expand
//TLE解法 #include <iostream> using namespace std; int n, m; int a[50000], b[50000], c[50000], w[50000]; int x[50000], y[50000], z[50000]; int main() { int i, j; cin >> n >> m; for (i = 0; i < n; i++) cin >> a[i] >> b[i] >> c[i] >> w[i]; for (i = 0; i < m; i++) cin >> x[i] >> y[i] >> z[i]; for (i = 0; i < m; i++) { int maxW = 0; for (j = 0; j < n; j++) { if (x[i] >= a[j] && y[i] >= b[j] && z[i] >= c[j] && maxW < w[j]) { maxW = w[j]; } } cout << maxW << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Optimal Recommendations |
User | startcpp |
Language | C++ (Clang 3.8.0) |
Score | 0 |
Code Size | 534 Byte |
Status | TLE |
Exec Time | 2103 ms |
Memory | 1792 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | 10-random-00.txt, 10-random-01.txt, 10-random-02.txt, 10-random-03.txt, 10-random-04.txt, 20-absW-00.txt, 20-absW-01.txt, 20-absW-02.txt, 20-absW-03.txt, 20-absW-04.txt, 30-balance-00.txt, 30-balance-01.txt, 30-balance-02.txt, 30-balance-03.txt, 30-balance-04.txt, 40-limit_dim-00.txt, 40-limit_dim-01.txt, 40-limit_dim-02.txt, 40-limit_dim-03.txt, 40-limit_dim-04.txt, 40-limit_dim-05.txt, 40-limit_dim-06.txt, Corner1.txt, Sample1.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
10-random-00.txt | TLE | 2103 ms | 1664 KB |
10-random-01.txt | AC | 1 ms | 256 KB |
10-random-02.txt | AC | 589 ms | 1024 KB |
10-random-03.txt | TLE | 2103 ms | 1280 KB |
10-random-04.txt | AC | 1068 ms | 1024 KB |
20-absW-00.txt | TLE | 2103 ms | 1664 KB |
20-absW-01.txt | AC | 1 ms | 256 KB |
20-absW-02.txt | TLE | 2103 ms | 1280 KB |
20-absW-03.txt | TLE | 2103 ms | 1280 KB |
20-absW-04.txt | AC | 910 ms | 640 KB |
30-balance-00.txt | TLE | 2103 ms | 1664 KB |
30-balance-01.txt | AC | 1 ms | 256 KB |
30-balance-02.txt | AC | 324 ms | 640 KB |
30-balance-03.txt | TLE | 2103 ms | 1280 KB |
30-balance-04.txt | AC | 1393 ms | 1280 KB |
40-limit_dim-00.txt | TLE | 2103 ms | 1792 KB |
40-limit_dim-01.txt | TLE | 2103 ms | 1792 KB |
40-limit_dim-02.txt | TLE | 2103 ms | 1792 KB |
40-limit_dim-03.txt | TLE | 2103 ms | 1664 KB |
40-limit_dim-04.txt | TLE | 2103 ms | 1664 KB |
40-limit_dim-05.txt | TLE | 2103 ms | 1664 KB |
40-limit_dim-06.txt | TLE | 2103 ms | 1792 KB |
Corner1.txt | AC | 1 ms | 256 KB |
Sample1.txt | AC | 1 ms | 256 KB |