본문 바로가기
python-algorithm

codeforces 1619A - Square String?

by 무적김두칠 2022. 5. 12.

1
2
3
4
5
6
n=int(input())
for i in range(n):
    s=input()
    len_string=len(s)
    if len_string%2 ==0 and s[:len_string//2]==s[len_string//2:]   : print("YES")
    else : print("NO")
cs
반응형

'python-algorithm' 카테고리의 다른 글

codeforces 1669A - Division?  (0) 2022.05.24
백준 10995 별 찍기 - 20  (0) 2022.05.16
codeforces 1294A - Collecting Coins  (0) 2022.05.12
codeforces 785A - Anton and Polyhedrons  (0) 2022.05.12
leetcode 47. Permutations II  (0) 2022.05.12

댓글