삐까냥의 파도타기
문제 출처 : https://www.acmicpc.net/problem/1032 import java.util.Scanner; public class Q1032 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);int num = sc.nextInt();char[] chars = sc.next().toCharArray();for ( int i = 1; i < num; i++ ) {String temp = sc.next();for ( int j = 0; j < chars.length; j++ ) {if ( chars[j] != temp.charAt(j) ) {chars[j] = '?';}}}System.out.print..
문제 출처 : https://www.acmicpc.net/problem/10808 import java.util.Scanner; public class Q10808 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);String string = sc.nextLine();int[] alphabet = new int[26];for ( int i = 0; i < string.length(); i++ ) {int temp = Integer.valueOf(string.charAt(i)) - 97;alphabet[temp]++;}for ( int i = 0; i < 26; i++ ) {System.out.print(alphabe..
문제 출처 : https://www.acmicpc.net/problem/1100 import java.util.Scanner; public class Q1100 { public static void main(String[] args) {Scanner sc = new Scanner(System.in);int white = 0;for ( int i = 0; i< 8; i++ ) {String temp = sc.nextLine();int j = 0;if ( i % 2 != 0 ) {j = 1;}for ( ; j < 8; j += 2) {if ( temp.charAt(j) == 'F' ) {white += 1;}}}System.out.println(white);}}