Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include<bits/stdc++.h>#define pb push_backtypedef long long ll;using namespace std;typedef pair<int, int> pii;const int maxn = 1e3 + 10;void solve() {int x, y;cin >> x >> y;set<int> se;for (int i = 0; i < 100; i++) {x *= 10;while(x < y) {x *= 10;se.insert(0);}int t = x / y;x = x % y;if(x == 0) break;se.insert(t);}for (int x : se)cout << x;cout << endl;}int main() {//freopen("test.in", "r", stdin);//freopen("test.out", "w", stdout);solve();