알고리즘/프로그래머스
문자열을 정수로 바꾸기
폭주강아지
2019. 1. 7. 02:14
해결책) stoi()함수를 활용하여 문자열을 정수로 바꿔주었다.
※타입변환
int ---> string
: to_string(x)
string ---> int
: stoi(x)