왜 wrong answer가 뜰까요?

rebeca970228 Reply 9 years 29 weeks ago
#include <stdio.h> int main() { int N, i, A, B; i=1; scanf("%d\n", &N); while(1){ scanf("%d %d\n", &A, &B); if((A+B)%2==1) printf("impossible"); else if(A<B || (A-B)%2==1) printf("impossible"); else printf("%d %d\n", (A+B)/2, (A-B)/2); if(i==N) break; i++; } return 0; }
blacksianj Reply 9 years 29 weeks ago
impossible뒤에 \n이 없어요