250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 추상클래스
- html form
- fielderror
- 오버라이딩
- 테스트코드
- JSON
- 티스토리챌린지
- 백준
- 김영한
- equals()
- 프록시
- @configuration
- 코딩테스트
- HttpServletResponse
- objecterror
- 인터페이스
- 오블완
- 의존관계
- http 메시지 컨버터
- 서블릿
- 싱글톤
- 다형성
- 코드트리
- 스프링
- java
- 참조변수
- DI
- 예외와 트랜잭션 커밋
- 스프링컨테이너
- 코드트리조별과제
Archives
- Today
- Total
목록크로아티아 알파벳 (1)
minOS
백준 2941 크로아티아 알파벳
https://www.acmicpc.net/problem/2941문제를 보고 .. dž 변경만 3자리고 나머지는 두자리라는 것이 눈에 들어와서 알파벳 검사를 3자리와 2자리 그리고 나머지로 나누면 개수가 나올 것 이라고 생각하였습니다.word = input()string = {"c=", "c-","d-", "lj","nj","s=","z="}ans =0idx =0while idx != len(word): if word[idx:idx+3] == "dz=": ans+=1 idx += 3 elif word[idx:idx+2] in string: ans+=1 idx+=2 else: idx+=1 ans+=1print(ans..
Problem Solving/백준
2024. 12. 29. 18:51