1

鑫鑫  •  1年前


include <stdio.h>

int main() {

int n, m, a, b, c, d;
scanf("%d %d", &n, &m);
a = m - 2 * n;
b = a / 2;
c = 4 * n - m;
d = c / 2;

if (b + d == n && 4 * b + 2 * d == m) {
	printf("%d ", d);
	printf("%d", b);
} else {
	printf("NULL");
}

return 0;

}


评论:

请先登录,才能进行评论