mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1905.cpp
This commit is contained in:
parent
dc23499004
commit
73451892e9
18
QUSTOJ/1905.cpp
Normal file
18
QUSTOJ/1905.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
cin>>n;
|
||||
while(n--)
|
||||
{
|
||||
string a,b;
|
||||
int x;
|
||||
cin>>a>>b>>x;
|
||||
if(x==1) cout<<b<<a<<endl;
|
||||
else cout<<a.substr(0,x-1)<<b<<a.substr(x-1)<<endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user