#include <cstdio> #include <cstdlib> using namespace std; int str2num(const char* str) { int v = 0; int i = 0; while (str[i] != '