#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;
}
时间: 2025-01-01 23:24:47
#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;
}