Recent Posts
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 |
Tags
- 깡돼후
- JanusWebRTC
- Value too long for column
- taint
- 개성국밥
- python
- pytest
- JanusWebRTCServer
- PersistenceContext
- k8s #kubernetes #쿠버네티스
- 오블완
- JanusGateway
- 겨울 부산
- 코루틴 컨텍스트
- JanusWebRTCGateway
- 코루틴 빌더
- mp4fpsmod
- kotlin
- tolerated
- preemption #
- 헥사고날아키텍처 #육각형아키텍처 #유스케이스
- PytestPluginManager
- 티스토리챌린지
- 달인막창
- VARCHAR (1)
- table not found
- 자원부족
- terminal
- vfr video
- Spring Batch
Archives
너와 나의 스토리
(BOJ) 1120 문자열 본문
반응형
문제: https://www.acmicpc.net/problem/1120
소스 코드:
#include <iostream> #include <string> #include <algorithm> using namespace std; string a, b; int m = 50; int main() { ios::sync_with_stdio(false); cin.tie(NULL), cout.tie(NULL); cin >> a >> b; int len1 = a.size(); int len2 = b.size(); for (int i = 0; i <= len2 - len1; i++) { int cnt = 0; for (int j = i; j < i+len1; j++) { if (a[j-i] != b[j]) cnt++; } m = min(cnt, m); } cout << m << '\n'; return 0; } |
반응형
'Algorithm > 기타' 카테고리의 다른 글
(BOJ) 13460 구슬 탈출 2 (0) | 2019.02.24 |
---|---|
(BOJ) 2573 빙산 (0) | 2019.02.24 |
(BOJ) 5543 상근날드 (0) | 2019.02.24 |
(BOJ) 9461 파도반 수열 (0) | 2019.02.24 |
(BOJ) 1946 신입 사원 (0) | 2019.02.21 |
Comments