#include "iostream" #include "algorithm" using namespace std; int ans; int main() { int a, b; while (cin >> a >> b) { if (a == 0 && b == 0) break; int num[1001]; int i = a * 10 * 10; int j = (a + 1) * 10 * 10; int k = 0; for (; i < j; i++) { if (i%b == 0) { num[k++] = i % 100; } } for (int i = 0; i < k - 1; i++) { if (num[i] / 10 == 0) cout << "0" << num[i] << " "; else cout << num[i] << " "; } if (num[k - 1] / 10 == 0) cout << "0" << num[k - 1] << endl; else cout << num[k - 1] << endl; } return 0; }
0.0分
1 人评分