C++:: 프로그래머스 < 문자열을 정수로 바꾸기 >

jahlee·2023년 8월 7일
0

프로그래머스_Lv.1

목록 보기
64/75
post-thumbnail

stoi와 같은 문자열 정수 변환 함수를 알고 있다면 쉽게 풀 수 있는 문제이다.

#include <string>
#include <vector>

using namespace std;

int solution(string s) {
    return stoi(s);
}

0개의 댓글