#include <iostream> #include <vector> #include <string> using namespace std; string IntToStr(int i) { char c[256]; _itoa_s(i, c, 256, 10); return c; } bool isMagicNumber(int Num) { int sum = 0; string digit = IntToStr(Num); for (string::const_iterator i = digit.begin(); i ...