Pagini recente » Borderou de evaluare (job #230530) | Borderou de evaluare (job #3261221) | Borderou de evaluare (job #1971518) | Borderou de evaluare (job #657) | Borderou de evaluare (job #2439956)
Borderou de evaluare (job #2439956)
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][j];
~~^~~
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][j];
~~^~~
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]], dp2[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]], dp2[i & 1 ^ 1][j]) + v[i]);
~~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 5ms | 131kb | Incorect | 0 |
2 | 10ms | 131kb | Incorect | 0 |
3 | 12ms | 131kb | Incorect | 0 |
4 | 17ms | 262kb | Incorect | 0 |
5 | 22ms | 262kb | Incorect | 0 |
6 | 32ms | 262kb | Incorect | 0 |
7 | 30ms | 262kb | Incorect | 0 |
8 | 37ms | 262kb | Incorect | 0 |
9 | 45ms | 131kb | Incorect | 0 |
10 | 72ms | 131kb | Incorect | 0 |
11 | 2ms | 131kb | OK | 5 |
12 | 66ms | 131kb | Incorect | 0 |
13 | 2ms | 131kb | Incorect | 0 |
14 | 3ms | 131kb | Incorect | 0 |
15 | 3ms | 131kb | Incorect | 0 |
16 | 3ms | 131kb | Incorect | 0 |
17 | 4ms | 131kb | Incorect | 0 |
18 | 5ms | 131kb | Incorect | 0 |
19 | 6ms | 131kb | Incorect | 0 |
20 | 7ms | 131kb | Incorect | 0 |
Punctaj total | 5 |