이 문제는 히든케이스에서 안돌아갔는데, 알고보니 p의 길이 ≤ t의 길이 ≤ 10,000 이므로
부분문자열이 클 경우 stoi()를 못쓰고 long long형으로 변환하는 stoll()을 써야 처리가 가능했다.
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int solution(string t, string p) {
int answer = 0;
int ss = t.size()-p.size();
for(int i=0; i<=ss; i++) {
string now = t.substr(i, p.size());
if (stoll(now) <= stoll(p)) answer++;
}
return answer;
}