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: 6ms
Memory: 1712kB
Author: 2018212212307
In contest: 1271

#include<bits/stdc++.h>
#include<vector>
#include<iostream>
#include<queue>
#include<map>
using namespace std;
const int maxn=1e5+10;
typedef long long ll;
int t;
int main()
{
	ll n,m;
	cin>>n>>m;
	for(int i=0;i<=n;i++)
	{
		int j=n-i;	
		if(i*2+j*4==m)
		{
			cout<<i<<" "<<j<<endl;
			return 0;
		}
	}
	cout<<"No answer"<<endl;
}