import java.util.Scanner;public class Haiku { public void syllables(int A,int B,int C) { if(A==5) { if(B==7&&C==5) { System.out.println("Yes"); }else { System.out.println("No"); } }else if(A==7) { if(B==5&&C==5) { System.out.println("Yes"); }else { System.out.println("No"); } }else { System.out.println("No"); } } public static void main(String[] args) { // TODO 自动生成的方法存根 Scanner sc=new Scanner(System.in); //System.out.println("输入"); int A=sc.nextInt(); int B=sc.nextInt(); int C=sc.nextInt(); new Haiku().syllables(A, B, C); }}
添加回答
举报
0/150
提交
取消