-
[C++] strstr ~ 부분 문자열 구하는 stl아무거나적어~ 2023. 9. 2. 18:531234567891011121314#include <bits/stdc++.h>#define endl '\n' // don't use when you cover interactive problemusing namespace std;int main() {ios::sync_with_stdio(false);cin.tie(0), cout.tie(0);string s, p; cin >> s >> p;cout << (strstr(s.c_str(), p.c_str()) != nullptr) << endl;return 0;}cs
'아무거나적어~' 카테고리의 다른 글
dp (0) 2023.09.06 최단거리 (0) 2023.09.06 python3 vs pypy3 string in operator 차이 (0) 2023.09.02 python string in operator ~ O(N) (0) 2023.09.02 [dp, knapsack] 2가지 다른 풀이 (0) 2023.08.28