import java.io.*; public class P8845小卡与质数 { public static void main(String[] args) throws IOException { StreamTokenizer st=new StreamTokenizer (new BufferedReader(new InputStreamReader(System.in))); st.nextToken(); int T = (int)st.nval; int m,n; String str[]=new String[T]; for(int i=0;i<T;i++){ st.nextToken(); m = (int) st.nval; st.nextToken(); n = (int) st.nval; if(m == 2 && n == 1 || m == 1 && n == 2){ System.out.println("Yes"); }else{ System.out.println("No"); } }
#传智杯---小卡与质数
最新推荐文章于 2024-11-07 16:17:22 发布