Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SuprDewd/CompetitiveProgramming
/ snoob
Function
snoob
code/tricks/snoob.cpp:1–3 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
int snoob(int x) {
2
int y = x & -x, z = x + y;
3
return z | ((x ^ z) >> 2) / y; }
4
// vim: cc=60 ts=2 sts=2 sw=2:
Callers
1
test
Function · 0.85
Calls
no outgoing calls
Tested by
1
test
Function · 0.68