시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1976 1267 1125 68.058%

문제

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

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

입력

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

출력

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

예제 입력 1

4
4 MISSPELL 
1 PROGRAMMING 
7 CONTEST 
3 BALLOON

예제 출력 1

MISPELL 
ROGRAMMING 
CONTES 
BALOON
W3sicHJvYmxlbV9pZCI6IjI3MTEiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM2MjRcdWQwYzBcdWI5ZTggXHVhY2UwXHVjYzNkXHVjNjAxIiwiZGVzY3JpcHRpb24iOiI8cD5cdWFjZTBcdWNjM2RcdWM2MDFcdWM3NDAgXHViOWU4XHViMGEwIFx1YzYyNFx1ZDBjMFx1Yjk3YyBcdWIwYjhcdWIyZTQuIFx1Y2MzZFx1YzYwMVx1Yzc3NFx1YWMwMCBcdWM2MjRcdWQwYzBcdWI5N2MgXHViMGI4IFx1YmIzOFx1YzdhNVx1YWNmYyBcdWM2MjRcdWQwYzBcdWI5N2MgXHViMGI4IFx1YzcwNFx1Y2U1OFx1YWMwMCBcdWM4ZmNcdWM1YjRcdWM4NGNcdWM3NDQgXHViNTRjLCBcdWM2MjRcdWQwYzBcdWI5N2MgXHVjOWMwXHVjNmI0IFx1YmIzOFx1Yzc5MFx1YzVmNFx1Yzc0NCBcdWNkOWNcdWI4MjVcdWQ1NTh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zaW5nbGUgaW50ZWdlciBOLCAoMSAmbGU7IE4gJmxlOyAxMDAwKSB3aGljaCBpcyB0aGUgbnVtYmVyIG9mIGRhdGFzZXRzIHRoYXQgZm9sbG93LiZuYnNwOzxcL3A+XHJcblxyXG48cD5FYWNoIGRhdGFzZXQgY29uc2lzdHMgb2YgYSBzaW5nbGUgbGluZSBvZiBpbnB1dCBjb250YWluaW5nIE0sIGEgc3BhY2UsIGFuZCBhIHNpbmdsZSB3b3JkIG1hZGUgdXAgb2YgdXBwZXJjYXNlIGxldHRlcnMgb25seS4gTSB3aWxsIGJlIGxlc3MgdGhhbiBvciBlcXVhbCB0byB0aGUgbGVuZ3RoIG9mIHRoZSB3b3JkLiBUaGUgbGVuZ3RoIG9mIHRoZSB3b3JkIGlzIGd1YXJhbnRlZWQgdG8gYmUgbGVzcyB0aGFuIG9yIGVxdWFsIHRvIDgwLiZuYnNwOzxcL3A+XHJcbiIsIm91dHB1dCI6IjxwPkZvciBlYWNoIGRhdGFzZXQsIHlvdSBzaG91bGQgZ2VuZXJhdGUgb25lIGxpbmUgb2Ygb3V0cHV0IHdpdGggdGhlIGZvbGxvd2luZyB2YWx1ZXM6IFRoZSBkYXRhc2V0IG51bWJlciBhcyBhIGRlY2ltYWwgaW50ZWdlciAoc3RhcnQgY291bnRpbmcgYXQgb25lKSwgYSBzcGFjZSwgYW5kIHRoZSBtaXNzcGVsbGVkIHdvcmQuIFRoZSBtaXNzcGVsbGVkIHdvcmQgaXMgdGhlIGlucHV0IHdvcmQgd2l0aCB0aGUgaW5kaWNhdGVkIGNoYXJhY3RlciBkZWxldGVkLjxcL3A+XHJcbiIsImhpbnQiOiIiLCJvcmlnaW5hbCI6IjEiLCJwcm9ibGVtX2xhbmdfY29kZSI6Ilx1YzYwMVx1YzViNCJ9XQ==

출처

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

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