← Back to List

2711번: 오타맨 고창영 ↗

Solutions

C++14
235 B | 235 chars
#include <iostream>
#include <string>
using namespace std;
int N,A;
string a;
int main()
{
	cin>>N;
	for(int x=0; x<N; x++)
	{
		cin>>A>>a;
		for(int x=0; x<a.length(); x++)
		{
			if(x+1==A);
			else cout<<a[x];
		}
		cout<<endl;
	}
}