Files
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

18 lines
342 B
C++

#include <bits/stdc++.h>
using namespace std;
void output(int b, int i) {
printf("\n%d = 800 * %d + 9 * %d \n", b, i, i);
}
int main() {
int b, i;
for (i = 10; i < 100; i++) {
b = i * 809;
if (8 * i < 100 && 9 * i >= 100 && b == 800 * i + 9 * i)
output(b, i);
}
return 0;
}