Start: Jun, 05, 2019 15:00:00
2019春ACM通识课考试(第二场)
End: Jun, 05, 2019 18:00:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 5ms
Memory: 1712kB
Author: 2018212212139
In contest: 1271

#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
	int n,sum,a,m,b;
	cin>>n>>m;
	b=(m-2*n)/2;
	a=n-b;
	if(b<0||a<0||m%2==1)
		printf("No answer\n");
	else
	{
		printf("%d %d\n",a,b);
	}
}