| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1301633 | tan | 콤보 (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s,p;
int x=0,y=0;
cin>>s>>p;
char* a=&s[0];
for(int i=0;i<p.length();i++){
if(*a==p[0]){
a++;
y+=1;
}else{
a=&s[0];
x=max(x,y);
y=0;
}
}
cout<<x;
return 0;
}
