Advertisement
acxl

code base version 1.0

Dec 11th, 2020
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. reverse(s.begin(), s.end());
  2. for (int i = s.size() - 1; i >= 0; i--) {
  3. if (s[i] >= '0' && s[i] <= '9')
  4. n += (s[i] - 48) * pow(base, i);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement