We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Strange Counter
Strange Counter
Sort by
recency
|
1011 Discussions
|
Please Login in order to post a comment
long strangeCounter(long t) { long b = 1, tmp = 3, idx = 3, j; while (idx < t){ b += tmp; tmp *= 2; idx += tmp; } j = t - b + 1; return tmp - j + 1; } delray dermatology
long strangeCounter(long t) { long b = 1, tmp = 3, idx = 3, j; while (idx < t){ b += tmp; tmp *= 2; idx += tmp; } j = t - b + 1; return tmp - j + 1; }
include
using namespace std;
long strangeCounter(long t) { long cycle_start = 1; long cycle_length = 3;
}
int main() { ios::sync_with_stdio(false); cin.tie(NULL);
}
include
using namespace std;
long strangeCounter(long t) { long cycle_start = 1; long cycle_length = 3;
}
int main() { ios::sync_with_stdio(false); cin.tie(NULL);
}