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() {
|
|
for (int a = 1; a <= 60000; a++) {
|
|
int b = 60000 - a;
|
|
if (a / 3 == 3 * (b / 6) + 3000) {
|
|
cout << a << " " << b << endl;
|
|
break;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|