#include <iostream> using namespace std; int arr[10]; int main(){ int n, num = 0; cin >> n; while(n){ if(arr[n%10] == 0){ arr[n%10]++; ...