#include<iostream>
#include<string>
#include<cstdio>
using namespace std;
int main()
{
int t;
cin>>t;
int a = t;
getchar();
while(t--){
string s;
int n;
cin>>n;
getchar();
getline(cin,s,‘\n‘);
int len = s.length();
string ss="";
for(int i=0;i<n-1;i++){
ss = ss + s[i];
}
for(int j=n;j<len;j++){
ss=ss+ s[j];
}
cout<<a-t+1<<" "<<ss<<endl;
}
}
时间: 2024-10-05 08:30:53