0956デフォルトの名無しさん垢版2018/12/03(月) 00:53:09.20ID:G9VPwKeW #include <iostream> #include <string> using namespace std; int main(void) { string x; cin >> x; for (int i = 0; i != x.size() - 1; ++i) { cout << stoi(x[i]) << endl; } }