Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
10 August 2023, 18:35 |
c++20 |
50.0 |
main.cpp: In function ‘void update(int, int, int)’:
main.cpp:25:40: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
25 | for( ; px <= n; px += px ^ (px - 1) & px)
| ~~~~~~~~~^~~~
main.cpp:26:59: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
26 | for(py = sy; py <= n; py += py ^ (py - 1) & py)
| ~~~~~~~~~^~~~
main.cpp: In function ‘int query(int, int)’:
main.cpp:34:36: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
34 | for( ; px; px -= px ^ (px - 1) & px)
| ~~~~~~~~~^~~~
main.cpp:35:46: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
35 | for(py = sy; py; py -= py ^ (py - 1) & py)
| ~~~~~~~~~^~~~
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
Scor |
|---|---|---|---|---|
|
1
|
correct |
0,013 |
24.28MB |
10,0 |
|
2
|
correct |
0,013 |
24.55MB |
10,0 |
|
3
|
correct |
0,019 |
24.83MB |
10,0 |
|
4
|
correct |
0,055 |
28.27MB |
10,0 |
|
5
|
correct |
0,052 |
28.89MB |
10,0 |
|
6
|
wrong |
0,108 |
39.95MB |
0,0 |
|
7
|
wrong |
0,13 |
39.78MB |
0,0 |
|
8
|
wrong |
0,11 |
38.85MB |
0,0 |
|
9
|
MemoryLimitExceeded |
0,135 |
40.01MB |
0,0 |
|
10
|
wrong |
0,11 |
39.26MB |
0,0 |