mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
31 lines
693 B
C++
31 lines
693 B
C++
|
#include <iostream>
|
||
|
#include <algorithm>
|
||
|
#include <cstdio>
|
||
|
#include <cstring>
|
||
|
using namespace std;
|
||
|
char ans[500], s[500];
|
||
|
char pattern[] = "_small_";
|
||
|
int main ( )
|
||
|
{
|
||
|
while ( ~scanf ( "%s" , s ) )
|
||
|
{
|
||
|
int i = 0;
|
||
|
while ( s[i] )
|
||
|
if ( s[i++] == '_' ) break;
|
||
|
int j = 0;
|
||
|
while ( s[i] )
|
||
|
ans[j++] = s[i++];
|
||
|
i = 0;
|
||
|
while ( pattern[i] )
|
||
|
ans[j++] = pattern[i++];
|
||
|
i = 0;
|
||
|
scanf ( "%s" , s);
|
||
|
while ( s[i] )
|
||
|
if ( s[i++] == '_' ) break;
|
||
|
while ( s[i] )
|
||
|
ans[j++] = s[i++];
|
||
|
ans[j] = 0;
|
||
|
printf ( "%s\n" , ans );
|
||
|
}
|
||
|
}
|