시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 2150 1392 1247 68.068%

문제

고창영은 맨날 오타를 낸다. 창영이가 오타를 낸 문장과 오타를 낸 위치가 주어졌을 때, 오타를 지운 문자열을 출력하는 프로그램을 작성하시오.

창영이는 오타를 반드시 1개만 낸다.

입력

첫째 줄에 테스트 케이스의 개수 T(1<=T<=1,000)가 주어진다. 각 테스트 케이스는 한 줄로 구성되어 있다. 첫 숫자는 창영이가 오타를 낸 위치이고, 두 번째 문자열은 창영이가 친 문자열이다. 문자열의 가장 첫 문자는 1번째 문자이고, 문자열의 길이는 80을 넘지 않고, 대문자로만 이루어져 있다. 오타를 낸 위치는 문자열 길이보다 작거나 같다.

출력

각 테스트 케이스에 대해 오타를 지운 문자열을 출력한다.

예제 입력 1

4
4 MISSPELL 
1 PROGRAMMING 
7 CONTEST 
3 BALLOON

예제 출력 1

MISPELL 
ROGRAMMING 
CONTES 
BALOON
W3sicHJvYmxlbV9pZCI6IjI3MTEiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM2MjRcdWQwYzBcdWI5ZTggXHVhY2UwXHVjYzNkXHVjNjAxIiwiZGVzY3JpcHRpb24iOiI8cD5cdWFjZTBcdWNjM2RcdWM2MDFcdWM3NDAgXHViOWU4XHViMGEwIFx1YzYyNFx1ZDBjMFx1Yjk3YyBcdWIwYjhcdWIyZTQuIFx1Y2MzZFx1YzYwMVx1Yzc3NFx1YWMwMCBcdWM2MjRcdWQwYzBcdWI5N2MgXHViMGI4IFx1YmIzOFx1YzdhNVx1YWNmYyBcdWM2MjRcdWQwYzBcdWI5N2MgXHViMGI4IFx1YzcwNFx1Y2U1OFx1YWMwMCBcdWM4ZmNcdWM1YjRcdWM4NGNcdWM3NDQgXHViNTRjLCBcdWM2MjRcdWQwYzBcdWI5N2MgXHVjOWMwXHVjNmI0IFx1YmIzOFx1Yzc5MFx1YzVmNFx1Yzc0NCBcdWNkOWNcdWI4MjVcdWQ1N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aW5zIGEgc2luZ2xlIGludGVnZXIgTiwgKDEgJmxlOyBOICZsZTsgMTAwMCkgd2hpY2ggaXMgdGhlIG51bWJlciBvZiBkYXRhc2V0cyB0aGF0IGZvbGxvdy4mbmJzcDs8XC9wPlxyXG5cclxuPHA+RWFjaCBkYXRhc2V0IGNvbnNpc3RzIG9mIGEgc2luZ2xlIGxpbmUgb2YgaW5wdXQgY29udGFpbmluZyBNLCBhIHNwYWNlLCBhbmQgYSBzaW5nbGUgd29yZCBtYWRlIHVwIG9mIHVwcGVyY2FzZSBsZXR0ZXJzIG9ubHkuIE0gd2lsbCBiZSBsZXNzIHRoYW4gb3IgZXF1YWwgdG8gdGhlIGxlbmd0aCBvZiB0aGUgd29yZC4gVGhlIGxlbmd0aCBvZiB0aGUgd29yZCBpcyBndWFyYW50ZWVkIHRvIGJlIGxlc3MgdGhhbiBvciBlcXVhbCB0byA4MC4mbmJzcDs8XC9wPlxyXG4iLCJvdXRwdXQiOiI8cD5Gb3IgZWFjaCBkYXRhc2V0LCB5b3Ugc2hvdWxkIGdlbmVyYXRlIG9uZSBsaW5lIG9mIG91dHB1dCB3aXRoIHRoZSBmb2xsb3dpbmcgdmFsdWVzOiBUaGUgZGF0YXNldCBudW1iZXIgYXMgYSBkZWNpbWFsIGludGVnZXIgKHN0YXJ0IGNvdW50aW5nIGF0IG9uZSksIGEgc3BhY2UsIGFuZCB0aGUgbWlzc3BlbGxlZCB3b3JkLiBUaGUgbWlzc3BlbGxlZCB3b3JkIGlzIHRoZSBpbnB1dCB3b3JkIHdpdGggdGhlIGluZGljYXRlZCBjaGFyYWN0ZXIgZGVsZXRlZC48XC9wPlxyXG4iLCJoaW50IjoiIiwib3JpZ2luYWwiOiIxIiwicHJvYmxlbV9sYW5nX2NvZGUiOiJcdWM2MDFcdWM1YjQifV0=

출처

ACM-ICPC > Regionals > North America > Greater New York Region > 2007 Greater New York Programming Contest A번

  • 문제를 번역한 사람: baekjoon
  • 잘못된 데이터를 찾은 사람: occidere