Pagini recente » Cod sursa (job #90293) | Monitorul de evaluare | Cod sursa (job #85566) | Borderou de evaluare (job #1513398) | Borderou de evaluare (job #2507392)
Borderou de evaluare (job #2507392)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:27:32: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
r1[i&1][l][j]=max(max(r1[1-i&1][l][j],(j>=s&&(l==1||r1[1-i&1][l-1][j-s]))?(r1[1-i&1][l-1][j-s]+c):0),r1[i&1][l][j-1]);
~^~
main.cpp:27:62: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
r1[i&1][l][j]=max(max(r1[1-i&1][l][j],(j>=s&&(l==1||r1[1-i&1][l-1][j-s]))?(r1[1-i&1][l-1][j-s]+c):0),r1[i&1][l][j-1]);
~^~
main.cpp:27:85: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
r1[i&1][l][j]=max(max(r1[1-i&1][l][j],(j>=s&&(l==1||r1[1-i&1][l-1][j-s]))?(r1[1-i&1][l-1][j-s]+c):0),r1[i&1][l][j-1]);
~^~
main.cpp:34:32: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
r2[i&1][l][j]=max(max(r2[1-i&1][l][j],(j>=s&&(l==1||r2[1-i&1][l-1][j-s]))?(r2[1-i&1][l-1][j-s]+c):0),r2[i&1][l][j-1]);
~^~
main.cpp:34:62: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
r2[i&1][l][j]=max(max(r2[1-i&1][l][j],(j>=s&&(l==1||r2[1-i&1][l-1][j-s]))?(r2[1-i&1][l-1][j-s]+c):0),r2[i&1][l][j-1]);
~^~
main.cpp:34:85: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
r2[i&1][l][j]=max(max(r2[1-i&1][l][j],(j>=s&&(l==1||r2[1-i&1][l-1][j-s]))?(r2[1-i&1][l-1][j-s]+c):0),r2[i&1][l][j-1]);
~^~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 9ms | 1835kb | OK | 10 | 10 |
| 2 | 8ms | 1835kb | OK | 10 | 10 |
| 3 | 25ms | 1867kb | OK | 10 | 10 |
| 4 | 25ms | 1835kb | OK | 10 | 10 |
| 5 | 15ms | 1835kb | OK | 10 | 10 |
| 6 | 631ms | 1871kb | OK | 10 | 10 |
| 7 | 727ms | 1871kb | OK | 10 | 10 |
| 8 | 1181ms | 1871kb | OK | 10 | 30 |
| 9 | 992ms | 1871kb | OK | 10 |
| 10 | 731ms | 1966kb | OK | 10 |
| Punctaj total | 100 |