21 lines
408 B
C
21 lines
408 B
C
#include <stdio.h>
|
|
|
|
void main() {
|
|
|
|
for (int n = 1000; n < 10000; n++) {
|
|
for (int x = 1000; x < 10000; x++) {
|
|
int e = 0;
|
|
for (int y = 1000; y < 10000; y++) {
|
|
if ((15 * x + 200 * y) == n) {
|
|
e += 1;
|
|
printf("x = %d, y = %d, n = %d\n", x, y, n);
|
|
if (e == 4) {
|
|
printf("e = 4, ïðè x = %d, y = %d, n = %d\n", x, y, n);
|
|
printf("%d", n);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |