fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. std::string str = "FF00F0F0CCCCAAAA";
  7. long unsigned int val = std::stoul(str.c_str(), 0, 16);
  8. cout <<val;
  9. return 0;
  10. }
Success #stdin #stdout 0s 5624KB
stdin
Standard input is empty
stdout
18374951396690406058