Python(백준)/문자열
★코테 준비 필수!★문자열 받기★[Python 백준 11718번 그대로 출력하기]
goAhEAd_29
2023. 3. 27. 18:42
728x90
반응형
https://www.acmicpc.net/problem/11718
11718번: 그대로 출력하기
입력이 주어진다. 입력은 최대 100줄로 이루어져 있고, 알파벳 소문자, 대문자, 공백, 숫자로만 이루어져 있다. 각 줄은 100글자를 넘지 않으며, 빈 줄은 주어지지 않는다. 또, 각 줄은 공백으로 시
www.acmicpc.net
import sys
import sys
s = sys.stdin.readlines()
for i in s:
print(i.rstrip())
https://knowallworld.tistory.com/112
★코테에서 꼭 쓰이는★ 헷갈리는 문자열 정리
import sys #입력 216 N = int(sys.stdin.readline()) print(N) #출력 : 216 print(list(map(int,str(N)))) #출력 : [2,1,6] #입력 216 M = list(map(int ,sys.stdin.readline().rstrip())) print(M) #출력 : [2,1,6] O = list(map(str, sys.stdin.readline().rstri
knowallworld.tistory.com
==> 참고하기!!!!!
728x90
반응형