Help parent

Submit solution

Points: 10
Time limit: 2.0s
Memory limit: 250M

Problem type

All governments find that a lock-down is the best solution to stop coronavirus from spreading with minimizing human interaction. So the work and study from home became the new lifestyle of 7 billion people around the world. But this step gives extra work for parents because beside their responsibilities as employees, they have to study with their children and monitor their performance, and spelling errors are one of the problems which face their children. Here comes your impact as a software engineer. You have to write a program which automates the correction of misspellings.

Input Specification

The first line of the input file contains a single integer N (1 ≤N≤1000) which is the number of cases to follow.

Each case takes a line and each line contains a number M followed by a space then a single String composed by capital letters. ( M represents the index of wrong character which you have to erase it).

M will be less than or equal to the word size, and the word size is guaranteed to be below 80.

Output Specification

For each case, you must generate a Number and String separated with space. Number represents the order, String is the correction of the given word.

Sample Input


Sample Output



  • 0
    aimrane_66  commented on Dec. 27, 2022, 7:30 p.m.

    pain plz some one help me

  • 0
    omarthesaiyajin  commented on July 24, 2021, 4:28 a.m. edited

    LOL, that was a good problem !

  • 0
    Laila  commented on Nov. 20, 2020, 8:18 p.m.

    lel, my bad. I didn't pay attention to some details xDDDD

    • 0
      aymanrs  commented on Nov. 24, 2020, 5:55 p.m.

      I can feel your pain

  • 0
    Laila  commented on Nov. 19, 2020, 8:37 p.m.

    Hey. It's really confusing me right here. I tried so many times this program and it actually works on DEV C++ but once I submit the solution they give me WA. I can't find the problem smh.

    • 0
      tamahom  commented on Nov. 24, 2020, 9:52 p.m.

      I read your submission and I saw that you're not reading the number of tests, and you directly give your answer, that's why you should read the number of tests before and then for every test you answer.

    • -1
      code06  commented on Nov. 20, 2020, 6:25 p.m.

      Make sure you have the correct formatting and case. It happened to me too, when displaying the answers the index isn't the same as the one from the input, it's actually the index of the index. XD