6

蒙自一中张黄宇萌  •  13天前


include <bits/stdc++.h>

using namespace std;

int main() {

int n = 0, m = 0;
int l, r, k, a, c, b;
cin >> a >> b;
for (int i = 0; i < 1000; i++) {
	m = n + a;
	if (((m - b) / (n - b) == 2) && ((m - b) % (n - b) == 0)) {
		cout << m << n;
	} 

	n = n + 1;

}
return 0;

}


评论:

请先登录,才能进行评论