코딩테스트/프로그래머스 - LV 0

[프로그래머스] 문자열을 정수로 변환하기

웅드 2024. 1. 25. 17:02

 

 

  • 풀이
#include <string>
#include <vector>

using namespace std;

int solution(string n_str) {
    return stoi(n_str);
}
반응형