import java.util.Scanner; public class Solution { public static void main(String[] args) throws Exception { //在此编写你的代码 Scanner sc =new Scanner(System.in); String a =sc.next(); String b =sc.next(); if(a.equals(b)) System.out.println("名字相同"); else if (a.length()==b.length()) System.out.println("名称长度相同"); } }