#include<bits/stdc++.h>
using namespace std;
int main()
{
int N;
string x;
int t;
string y;
cin>>N;
scanf(" ");
cin>>x;
scanf(" ");
getline(cin,y);
t = y.length();
if(N>t)
{
while(t!=N)
{
y=x+y;
t++;
}
}
if(t>N)
{
x=y.substr(t-N);
cout<<x;
}
if(t==N)
{
cout<<y;
}
}
L1-032 Left-pad 满分过
于 2024-03-13 23:47:28 首次发布