Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
so
#include <iostream> #include <cmath> int main() { const std::uint64_t bytes = (1ull << 50) -1; // (2^50-1) int exp = static_cast<int>(std::floor(std::log((double) bytes) / std::log((double) 1024))); std::cout << exp; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Const Return Test
D. Traveling Graph
FindKthElementDivideConquer
HeapSort
Optimization Lab 2
CPP - Ex 5
Problem: binary
Using copy_n
Find Case Combinations of a String
multiply_without_asterisk
Please log in to post a comment.