알고리즘(python)/문자열
[Python]문자열 백준 2908
문제https://www.acmicpc.net/problem/2908 1234567891011121314151617181920212223242526272829303132import sys n,m=sys.stdin.readline().split()print(type(n))print(m)n=list(n)m=list(m) ########################################함수를 사용하지 않을경우n_reverse=[]m_reverse=[]for i in range(len(n),0,-1):#배열 뒤집기 n_reverse.append(n[i-1])for i in range(len(m),0,-1): m_reverse.append(m[i-1]) str_n_reverse=''for i in rang..
2019. 12. 18. 21:22
최근댓글