#include<iostream>
using namespace std;
int main() {
int ra;
for (int ra = 1;ra <= 50;ra++) {
if (4 * ra + 2 * (50 - ra) == 160)
cout << 50 - ra << " " << ra;
}
return 0;
}
时间: 2024-10-29 19:07:42
#include<iostream>
using namespace std;
int main() {
int ra;
for (int ra = 1;ra <= 50;ra++) {
if (4 * ra + 2 * (50 - ra) == 160)
cout << 50 - ra << " " << ra;
}
return 0;
}