일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 라즈베리파이3b+
- 크롤링
- CSS
- ubuntu
- algotythm
- 2579
- Crawling
- raspberrypi
- baekjun
- 라즈베리파이3
- Python
- bootstrap
- dynaminprogramming
- 라즈비안
- 파이썬
- 트리
- 라즈베리파이
- 2909
- NAV
- 알고리즘
- MongoDB
- 백준
- HTML
- 16.04
- springboot3.x
- Algorythm
- dp
- 13237
- node.js
- nav-tab
Archives
- Today
- Total
노트
[백준] 27962번 오렌지먹은지오랜지 python 본문
n = int(input())
s = input()
ans = 'NO'
for i in range(1,n):
a = s[:i]
b = s[n-i:]
cnt=0
for j in range(len(a)):
if a[j]!=b[j]:
cnt+=1
if cnt==1:
ans='YES'
break
print(ans)
'알고리즘' 카테고리의 다른 글
[백준] 14267번 회사 문화 1 python (0) | 2023.06.17 |
---|---|
[백준] 28224번 Final Price python (0) | 2023.06.17 |
[백준] 17952번 과제는 끝나지 않아! python (0) | 2023.06.01 |
[백준] 2941번 크로아티아 알파벳 python (0) | 2023.06.01 |
[백준] 12789번 도키도키 간식드리미 python (0) | 2023.05.25 |
Comments