[알고리즘 특강] 문자열 알고리즘 (4/25)

박현아·2024년 5월 20일
0

https://www.youtube.com/@JomaClass

백준 11720번 숫자의 합

백준 1152번 단어의 개수

https://www.acmicpc.net/problem/1152

Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
String[] words = str.split(" ");
int cnt = 0;
for(String word : words) {
	if(word.equals(""){
    	continue;
    }
    cnt++;
System.out.println(cnt);

백준 1181번 단어 정렬

https://www.acmicpc.net/problem/1181
set을 쓰면 중복값이 알아서 삭제된다

백준 1157번 단어 공부

https://www.acmicpc.net/problem/1157

프로그래머스 신고 결과 받기

https://school.programmers.co.kr/learn/courses/30/lessons/92334

0개의 댓글