View Code of Problem 77

#include<iostream>
#include<cstring>
#include<string>
#include<algorithm>
#include<vector>
using namespace std;

int main()
{
	int n;
	cin >> n;
	cout << n / 1000 << " " << n % 1000 / 100 << " " << n % 100 / 10 << " " << n % 10;
	return 0;
}

Double click to view unformatted code.


Back to problem 77