백준 #13623번 Zero or One

jhj·2024년 2월 10일

백준 JAVA

목록 보기
213/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if(b == c && b != a) {
			System.out.println("A");
		}else if(a == c && a != b) {
			System.out.println("B");
		}else if(a == b && a != c) {
			System.out.println("C");
		}else {
			System.out.println("*");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글