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 |
Tags
- 백준
- C
- Database
- Web
- 써니나타스
- MySQL
- wargame
- Incognito
- Network
- 그리디 알고리즘
- 문자열
- CTF
- cryptography
- 정렬
- 인코그니토
- Text
- 구현
- 사칙연산
- Web Hacking
- HackCTF
- Forensics
- php
- writeup
- misc
- Digital Forensics
- Python
- N0Named
- xcz.kr
- 수학
- SuNiNaTas
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 5555번 반지 본문
[Baekjoon/Python3] 5555번 반지
s = input()
num = 0
for i in range(int(input())):
if s in input() * 2:
num += 1
print(num)
s = input()
num = 0
ring_s = []
for i in range(int(input())):
ring_s.append(input() * 2)
for j in ring_s:
if s in j:
num += 1
print(num)
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 5575번 타임 카드 (0) | 2020.12.05 |
---|---|
[Baekjoon/Python3] 5565번 영수증 (0) | 2020.12.05 |
[Baekjoon/Python3] 5554번 심부름 가는 길 (0) | 2020.12.05 |
[Baekjoon/Python3] 5543번 상근날드 (0) | 2020.12.05 |
[Baekjoon/Python3] 5533번 유니크 (0) | 2020.12.05 |
Comments