zzul1073_Java
import java.util.Scanner;
/**
* 限制解是正数,且脚数为偶数即可
*/
public class zzul1073 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt(),
n = sc.nextInt();
int x = (4*m - n)/2;
int y = (n - 2*m)/2;
if(x > 0 && y > 0 && n % 2 == 0){
System.out.println(x+" "+ y);
}else
System.out.println("No Answer");
}
}

浙公网安备 33010602011771号