1 2 3 4 5 6
string s; getline(cin, s); int a[100]; int n = s.length(); for(int i = 0; i < n; i++) a[i] = (int)(s[i] - '0');