Borderou de evaluare (job #2342290)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 12 februarie 2019 18:47:39
Problema V2d Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:34:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[0][i - 1][j] = max(mx[0][i - 1][j], p[1 - tt & 1][i][j] - i - j); ~~^~~~ main.cpp:35:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[0][i][j - 1] = max(mx[0][i][j - 1], p[1 - tt & 1][i][j] - i - j); ~~^~~~ main.cpp:37:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[1][i][j + 1] = max(mx[1][i][j + 1], p[1 - tt & 1][i][j] - i + j); ~~^~~~ main.cpp:38:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[1][i - 1][j] = max(mx[1][i - 1][j], p[1 - tt & 1][i][j] - i + j); ~~^~~~ main.cpp:40:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[2][i + 1][j] = max(mx[2][i + 1][j], p[1 - tt & 1][i][j] + i - j); ~~^~~~ main.cpp:41:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[2][i][j - 1] = max(mx[2][i][j - 1], p[1 - tt & 1][i][j] + i - j); ~~^~~~ main.cpp:43:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[3][i + 1][j] = max(mx[3][i + 1][j], p[1 - tt & 1][i][j] + i + j); ~~^~~~ main.cpp:44:60: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] mx[3][i][j + 1] = max(mx[3][i][j + 1], p[1 - tt & 1][i][j] + i + j); ~~^~~~ main.cpp:65:49: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses] p[tt & 1][i][j] = tt + 1 + (p[1 - tt & 1][i][j] + tt * max(max(mx[0][i][j] + i + j, mx[1][i][j] + i - j), max(mx[2][i][j] - i + j, mx[3][i][j] - i - j))) % q; ~~^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms786kbOK10
29ms524kbOK10
326ms917kbOK10
415ms1441kbOK10
5411ms3932kbOK10
6404ms5111kbOK10
7468ms5505kbOK10
8909ms6160kbOK10
9951ms6291kbOK10
10929ms6291kbOK10
Punctaj total100

Ceva nu functioneaza?