zoj 2897 Misspelling

#include "iostream"
#include "string"
using namespace std;

int main()
{
	int testcase, count = 0 , pos;
	string input;
	cin >> testcase;
	while (testcase--)
	{
		cin >> pos >> input;
		count++;
		input.erase(pos-1, 1);
		cout << count << " " <<  input << endl;
	}
}

你可能感兴趣的:(zoj 2897 Misspelling)