Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int i, n;
- int a[1000];
- string s[1000];
- cin >> i;
- for (n = 0; n <= i - 1; n++)
- {
- cin >> a[n];
- cin.ignore(256, ' ');
- getline(cin, s[n]);
- s[n] = s[n].erase(a[n] - 1, 1);
- }
- for (n = 0; n <= i - 1; n++)
- {
- cout << n + 1 << " " << s[n] << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement