#include<stdio.h> int main() { int n,m,a,b; while(scanf("%d %d",&n,&m)!=EOF) a=(m-2*n)/2; b=(m-2*n)%2; if(a>0 && b==0) printf("%d %d\n",n-a,a); else printf("No"); return 0; }
#include<stdio.h> int main() { int n,m,a,b; while(scanf("%d %d",&n,&m)!=EOF) a=(m-2*n)/2; b=(m-2*n)%2; if(a>0 && b==0) printf("%d %d\n",n-a,a); else printf("No"); return 0; }
转载于:https://www.cnblogs.com/chenlong991223/p/9743392.html