4 ms·
// without floats, multiplication, division, modulo: int result = (30|m^(m>>3)) - (((m^13)+1)>>4<<1);
by OMGWTF 12y ago
// without floats, multiplication, division, modulo:
int result = (30|m^(m>>3)) - (((m^13)+1)>>4<<1);
- grandalf 12y agomeant to upvote, accidentally downvoted.