public static void main(String[] args) throws Exception {
//在此编写你的代码
while (true) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num1 = Integer.parseInt(br.readLine());
int num2 = Integer.parseInt(br.readLine());
int num3 = Integer.parseInt(br.readLine());
if (num1 == num2 && num2 != num3) {
System.out.println("3");
} else if (num1 == num3 && num3 != num2) {
System.out.println("2");
} else if (num2 == num3 && num3 != num1) {
System.out.println("1");
}
}
}
What's wrong,What exactly do you want the output?
已解决
评论 (1)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
且听风吟
22 七月 2021, 03:55解决方法
Oh,Just get rid of the loop,this AI is really hard to say
+2