You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#include <bits/stdc++.h>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
int main() {
|
|
|
|
|
//小红a,小明b
|
|
|
|
|
for (int a = 1; a <= 100; a++)
|
|
|
|
|
for (int b = 1; b <= 100; b++) {
|
|
|
|
|
if (2 * (b - (a - b)) == a && a + (a - b) == 2 * b - 9) {
|
|
|
|
|
cout << a << " " << b << endl;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|