Pagini recente » Borderou de evaluare (job #889312) | Borderou de evaluare (job #262671) | Borderou de evaluare (job #141368) | Borderou de evaluare (job #663491) | Borderou de evaluare (job #2439962)
Borderou de evaluare (job #2439962)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:30:35: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp1[i & 1][j] = dp1[i & 1 ^ 1][T_MAX - 1];
~~^~~
main.cpp:34:62: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp1[i & 1][j] = max(dp1[i & 1][j], max(dp1[i & 1 ^ 1][j - d[i]], dp2[i & 1 ^ 1][j]) + v[i]);
~~^~~
main.cpp:34:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp1[i & 1][j] = max(dp1[i & 1][j], max(dp1[i & 1 ^ 1][j - d[i]], dp2[i & 1 ^ 1][j]) + v[i]);
~~^~~
main.cpp:38:35: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp2[i & 1][j] = dp2[i & 1 ^ 1][0];
~~^~~
main.cpp:42:62: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp2[i & 1][j] = max(dp2[i & 1][j], max(dp2[i & 1 ^ 1][j + d[i]], dp1[i & 1 ^ 1][j]) + v[i]);
~~^~~
main.cpp:42:88: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
dp2[i & 1][j] = max(dp2[i & 1][j], max(dp2[i & 1 ^ 1][j + d[i]], dp1[i & 1 ^ 1][j]) + v[i]);
~~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 6ms | 131kb | OK | 5 |
2 | 10ms | 131kb | OK | 5 |
3 | 13ms | 131kb | OK | 5 |
4 | 17ms | 131kb | OK | 5 |
5 | 23ms | 262kb | OK | 5 |
6 | 32ms | 262kb | OK | 5 |
7 | 30ms | 262kb | OK | 5 |
8 | 37ms | 131kb | OK | 5 |
9 | 48ms | 262kb | OK | 5 |
10 | 69ms | 262kb | OK | 5 |
11 | 2ms | 131kb | OK | 5 |
12 | 74ms | 131kb | OK | 5 |
13 | 2ms | 131kb | OK | 5 |
14 | 3ms | 131kb | OK | 5 |
15 | 3ms | 131kb | OK | 5 |
16 | 3ms | 131kb | OK | 5 |
17 | 4ms | 131kb | OK | 5 |
18 | 5ms | 131kb | OK | 5 |
19 | 6ms | 131kb | OK | 5 |
20 | 7ms | 131kb | OK | 5 |
Punctaj total | 100 |