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: 2018212212122
In contest: 1271

#include<cstdio>
#include<string>
#include<iostream>
#include<algorithm>
using namespace std;
int c,r,he,le,flag;
int main()
{
	flag=0;
	cin>>he>>le;
	for(int i=0;i<=he;++i){
		int j;
		j=he-i;
		if(i*4+j*2==le){
			cout<<j<<" "<<i<<endl;
			flag=1;
			break;
		}
	}


	if(!flag)
		cout<<"No answer"<<endl;
	return 0;	
}