언어, 알고리즘 공부/백준2020. 2. 12. 15:35[백준 알고리즘] 10809번 알파벳 찾기(Python 3, Java)
word = input() alpha = [-1 for _ in range(26)] for i in range(len(word)): if alpha[ord(word[i]) - 97] == -1: alpha[ord(word[i]) - 97] = i else: pass print(" ".join(map(str, alpha))) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { BufferedReader br ..