Make Unreal REAL.
article thumbnail
Level 0. 배열 만들기 5

 

 

#include <iostream>
#include <vector>
#include <string>

using namespace std;

vector<int> solution(vector<string> intStrs, int k, int s, int l)
{
    vector<int> answer;

    for (string& str : intStrs)
    {
        int num = stoi(str.substr(s, l));

        if (k < num)
            answer.emplace_back(num);
    }

    return answer;
}
profile

Make Unreal REAL.

@diesuki4

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

검색 태그