1
2
3
4
5
6
7
8
9
10
11
|
# def gcd(x,y):
# while (y) : x,y=y, x%y
# return x
s=input()
t=input()
lenS=len(s)
lenT=len(t)
s=s*lenT
t=t*lenS
if s==t : print(1)
else : print(0)
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 4796 캠핑 (0) | 2021.12.14 |
---|---|
백준 14467 소가 길을 건너간 이유 1 (0) | 2021.12.14 |
백준 18917 수열과 쿼리 38 (0) | 2021.12.14 |
백준 17176 암호해독기 (0) | 2021.12.14 |
백준 11068 회문인 수 (0) | 2021.12.09 |
댓글