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");

}
}
posted @ 2023-02-07 22:12  镰刀战士  阅读(23)  评论(0)    收藏  举报