- Owner
- Posdarascu Eugenie Daniel
- Problem
- CC
- Contest
- MindCoding 2017 Round 4 Bitdefender (Div. 1)
- Source
- 0.99KB
- Result
- Accepted
Compiler output
prog.cpp: In function 'void update(int, int)': prog.cpp:18:33: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for(;poz<=n;poz+=poz^(poz-1)&poz) ^ prog.cpp: In function 'int query(int)': prog.cpp:25:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses] for(;poz;poz-=poz^(poz-1)&poz) ^
Results
Test number Result Time 1 Ok 0.5821s 2 Ok 0.5257s 3 Ok 0.5132s 4 Ok 0.5139s 5 Ok 0.5269s 6 Ok 0.7025s 7 Ok 0.6698s 8 Ok 0.6422s 9 Ok 0.5828s 10 Ok 0.6029s