#include<bits/stdc++.h> using namespace std; int main(){ int n,ge,shi,bai,q; cin>>n; ge = n % 10; shi = n / 10 % 10; q = n/1000; bai = n / 100 % 10; cout<<q<<" "<<bai<<" "<<shi<<" "<<ge; return 0; }
Double click to view unformatted code.