Job 20028

Owner
Mihai Nitu
Problem
CC
Source
0.98KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'void precalc()':
prog.cpp:35:43: warning: iteration 65535u invokes undefined behavior [-Waggressive-loop-optimizations]
   popcount[i] = popcount[i - (i&(-i))] + 1;
                                           ^
prog.cpp:34:2: note: containing loop
  for (int i = 1; i < (1<<20); ++i) {
  ^

Results

Test numberResultTime
1Ok0.4152s
2Wrong answer0.3969s
Questions?

Sponsors Gold