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

#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<cstring>
#include<string>
using namespace std;
const int inf=0x3f3f3f3f;
const int maxn=1e5+9;
typedef long long ll;
int num[105]={0};
bool flag[105]={0};
int main(){
	int n,m;
	cin>>n>>m;
	int x,y;
	for(int i=0;i<=n;i++){
		if(2*i+4*(n-i)==m){
			printf("%d %d\n",i,n-i);
			return 0;
		}
	}
	printf("No answer\n");
	return 0;
}