fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. static size_t s_MaxVideoMemory = 9761193984;
  6. int main() {
  7.  
  8. constexpr float B_TO_MB = 1.f / (1024.f * 1024.f);
  9.  
  10. uint32_t m_MaxVideoMemory = static_cast<uint32_t>(s_MaxVideoMemory * B_TO_MB);
  11.  
  12. printf ("hello, %d ", m_MaxVideoMemory);
  13.  
  14. // your code goes here
  15. return 0;
  16. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
hello, 9309