Notice
Recent Posts
Link
Tags
- 문자열
- PYTHON
- @transactional
- hibernate
- 자바
- spring boot
- ORM
- select
- Docker
- sql
- jpa
- java
- 프로그래머스
- spring
- static
- join
- springboot
- Django
- 데이터베이스
- 스프링부트
- mysql
- 1차원 배열
- string
- AWS
- spring mvc
- nginx
- SSL
- DI
- spring security 6
- 스프링
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Archives
목록백준 1316번 (1)
개발하는 자몽

문제 문제 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static boolean check(String str) { boolean word[] = new boolean[26]; int prev = 0; for (int i = 0; i < str.length(); i++) { int now = str.charAt(i); //앞선 문자와 i번째 문자가 같지 않은 경우 if (prev != now) { //해당 문자가 처음 나오는 경우 (false인 경우) if (!word[now - 'a']) { word[now - 'a'] = true; prev =..
Algorithm
2022. 4. 22. 14:47