[SW Expert Academy] 1936. 1대1 가위바위보 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); //가위1, 바위2, 보3 if(A==1){ if(B==2){ System.out.println("B"); } else if (B==3) { System.out.println("A"); } } else if (A==2) { if(B==1){ System.out.println("A"); } else if (B==3) { S..
2024.03.12