https://www.acmicpc.net/problem/5622 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int result = 0; for(int i=0; istr.length(); i++) { switch(str.charAt(i)) { case 'A' : case 'B' : case 'C' : ..