(Topcoder) SRM689-div2 1000

ll bits=(ll)__builtin_popcount(mask);
현재 mask의 비트가 1인 것들의 위치를 반환 하는 것을 _builtin_popcount()이다.

댓글